Lets imagine that I have a single elasticsearch cluster to store document from two different companies
Company1 has
server1
server2 and
server3
Company2 has
server1
server2 and
server3
For me the easier way to make the different between both 'server1's of Company1 and 2 is by creating and adding a new field called 'company' that for the filebeat installed in Company1 servers will have a value of 'Company1', same with fbs in Company2 servers but with a value of 'Company2'.
Thanks for your help. This is exactly what's happening. I see documents indexed from this server where I've applied this filebeat.yml I pasted but in any of the documents the field 'company' has been created. So it is not working.
You are completely right sir, thank you very much for the advice. I had documents in my ES because I activated both 'system' and 'apache' modules and I was indexing other logs rather than those inside /var/log/*
Now I'm indexing documents from more logs and from Kibana -> Discover I can see a new field called 'field.company' with the expected values.
My question now is. Will this config in the filebeat apply to to the logs are are collected by suing the 'system' and 'apache' modules?
If you want it to apply to everything this filebeat collect, I think you need to use the add_fields under the processors and remove the fields configuration from the filestream input.
You would need to change your filebeat.yml to something like this:
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.