I am trying to use a single filebeat, enabled with system & apache module to send to elasticsearch. I would want to have a system index and a apache index. How can i do this?
ILM is enabled for me and for a single module, i set my index via this setting:
setup.ilm.enabled: auto
setup.ilm.rollover_alias: "filebeat-linuxclient"
setup.ilm.pattern: "{now/d}-000001"
setup.ilm.overwrite: false
now i would like to have filebeat-linuxclient-system and filebeat-linuxclient-apache as the alias.
This is my current filebeat.yml file settings for enabling system module:
I'm not familiar with ILM so I can't say what you'd want to do with that.
application was just an example of a potential field name you could use to differentiate between the two log sources.
I think given you're using two different modules you can probably use the event.module field or something similar to configure different index outputs.
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.