I am new to Flume and working on sending flume events using the HTTP Source. I am able to successfully send an event if the payload is formated as bellow:
[{
"headers" : {
"timestamp" : "434324343",
"host" : "random_host.example.com"
},
"body" : "random_body"
}]
However, Similar to the header I need to send the body as a JSONObject, not a string. For example:
[{
"headers" : {
"timestamp" : "434324343",
"host" : "random_host.example.com"
},
"body" : {
"value1" : "100",
"value2" : "101"
}
}]
How can i achive this?
Thanks in advance.