I am trying to add an ECS event.dataset with the add_fields processor similar to several of the Filebeat modules e.g., the Apache module which add the event datasets apache.access and apache.error.
I use the add_fields processor and configure it with either
target: ''
or
events_under_root: true
However what I get is the event.data set under the fields key:
fields:
event.dataset: "app.access"
What I expect is the event.dataset at the root level of the document
event.dataset: "app.access"
e.g. as all the Filebeat modules do. What am I missing?
I know I can use the add_tags processor but I am already using this for other purposes.
The events_under_root is not a valid setting in the add_fields processor.
There could be a subtle conflict ...are you using a module or just a generic input? If you are using a module like ngnix or something it could be overwriting event.dataset... I would need to test that case.
Thanks for taking time to addressing this question.
I configured the processors exactly as you suggests. It did not work for me.
I should add that the inputs are filestreams, several filestream inputs are configured in one configuration file under the input.d directory and each input has more than one processor defined.
I can share the configuration file if it helps you.
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.