Member since
04-08-2017
8
Posts
3
Kudos Received
0
Solutions
04-11-2017
06:13 AM
@Mutt Burgess E.g: I want to add the geoip data (from ip field) to the json, before shipping to elasticsearch. I don't know how to use jolt to include flowfile attribute data, yet (if possible) P.S: thanks for helping.
... View more
04-11-2017
02:57 AM
@Wynner JoltTransformJson: I couldn't find a way to include flowfile attributes in the jolt spec (so it may be 'default' included in the output JSON). If I'm missing something, pointing me to the right direction would be highly appreciated.
... View more
04-10-2017
03:34 AM
It works 🙂 thanks a lot. (however, I'll still have to figure out a way to retain original data types when doing an AttributesToJson, instead of having everything as a string)
... View more
04-10-2017
03:31 AM
@Wynner Read, Enrich and Ship logs from remote sensors. We have lots of logs in JSON format (http, dns, conn ... etc.), so, I want to add to the json document few fields (e.g. sensor location), enrich (e.g. geoip) then send them over to elasticsearch. I couldn't find a straight forward way to deal with the log entry content (like removing/adding fields) without either: a) manipulate the json log entry as 'text', which is far from being optimal ... or b) convert json content as attributes, benefit from attributes flexibility, then back to json again (which has it's own issues still: like having everything converted to strings :/). Your follow up is appreciated 🙂
... View more
04-08-2017
06:48 PM
Whoa! ... thanks, that's a lot to go through (I come from the elastic/logstash universe), I just installed NiFi. I'll try and feedback (especially on performance). Thanks a lot.
... View more
04-08-2017
06:05 PM
Thanks @Wynner for your reply, and for the valuable tips. It's for log files (BroIDS, to be specific https://www.bro.org/). Each log entry is one flow file, and the the whole content is around 500 bytes ... so size per flow file shouldn't be an issue (the rate, however, might be because it hits around 10,000 per second). ... I'll keep looking for a solution 🙂
... View more
04-08-2017
10:55 AM
3 Kudos
Is there a way to convert everything in the json message to FlowFile attributes with corresponding values? Example: {"ts":1491598800154,"id.orig_h":"172.17.25.52","id.orig_p":59648,"id.resp_h":"82.148.98.187","id.resp_p":80} will automatically create the "ts,id.orig_h ... etc." attributes. I know how to 'manually' do it one-by-one using EvaluateJsonPath.
... View more
Labels:
- Labels:
-
Apache NiFi