Hello,
I have logstash in 6.8.1 version my problem is that when I'm using two pipelines one for metricbeat and other for netflow I can't see metricbeat data. In elasticsearch I can see two indexes metricbeat-* and netflow_logstash-* but looks like both of them are netflow indexes.
My beast.conf file:
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
# index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
index => "metricbeat-%{+YYYY.MM.dd}"
}
}
My netflow.conf:
input {
udp {
port => 19000
codec => netflow {
netflow_definitions => "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-codec-netflow-3.14.1/lib/logstash/codecs/netflow/netflow.yaml"
versions => [9]
}
}
}
output {
elasticsearch {
hosts => "localhost:9200"
index => "netflow_logstash-%{+YYYY.MM.dd}"
}
}
When I used index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
I had metricbeat index, netflow index and index named %{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd} with netflow data in it.
What is wrong with my pipelines?