If source/input is only UDP, you use the json codec or Json_lines for the multiline. In case of file on the disk, you should use the file input plugin.
If json is inside fields, you have to parse, and the most likely you will need the json filter.
Not sure how you will get it, like a single JSON in the message or multiline.
Mmm, @Rios , I don't need to load the json data contained in the json file (yes, it's just one file and it's on the disk) as an event itself, I need to use that data for "enriching" my UDP received event, as we do with jdbc_static.
The file contains a list of KEY / VALUE that will be used to enrich the UDP received data.
What's the way to read a json file at the pipeline ingestion start and have this data in memory?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.