I am using elastic Kubernetes integration for pushing logs from the k8s cluster using an elastic agent. I would like to know how can i drop the unwanted fields. I tried the processor, but it didn't work.
I am using the fleet managed elastic agent to ingest logs from the k8s cluster to the Elasticsearch.
I have attached a screenshot of the indexed document and I would like to remove most of the fields related to cloud and ecs as this is irrelevant to my developers. Can I do this using the processor or should I use the ingest pipeline?
BTW to me it is not clear if you want to Drop Events... or Remove Fields...
Ok... can you share what you tried?
Can you share your config?
For most the cloud fields you can turn off the add metadata processor.
Not sure Which ECS fields you are referring to?
Some of the fields (agent and host I believe) are added AFTER the integration processing but you can certainly drop them in an ingest pipeline.... in fact you can do that with any / all the fields and often users find that to be an easy way to centralized removing fields.
There is documentation on how to do that here and here but instead of adding fields you can remove them and
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.