I am using filebeat and I want to also introduce metricbeat. Filebeat output is indexed in logstash-* however I need a different index with only the data from metricbeat (such as metricbeat-test-%{+YYYY.MM.dd} ) These will run together on a single server.
How can I instruct logstash to index the filebeat stuff in logstash-* and IF it is metricbeat to go on and use another index?
More or less I need an IF statement however I am not sure what I should include there!
My logstash config looks like:
output { elasticsearch { hosts => "10.0.0.5:9200" manage_template => "true" index => "logstash-test-%{+YYYY.MM.dd}" document_type => "apache" } }