Hi,
I cannot understand why I create two indexes on logstash to grab syslogs from two devices and then send to EL.
input {
udp {
host => "192.168.0.73"
port => "5515"
}
}
filter {}
output {
elasticsearch {
hosts => ["http://127.0.0.1:9200"]
index => "vngaf-test-eu-%{+YYYY.MM.dd}"
}
}
input {
tcp {
host => "192.168.0.73"
port => "5514"
}
}
filter {}
output {
elasticsearch {
hosts => ["http://127.0.0.1:9200"]
index => "logstash-test-%{+YYYY.MM.dd}"
}
}
Than on Kibana WEB UI -> Stack Management -> Kibana Index Pattern , I create an index pattern called like in the indexes of the files.
So, I think that the device that send logs on port tcp 5514 writes on the index "logstash-test-" and the device that send logs on udp 5515 writes on "vngaf-test-eu".
Instead, all two devices write on all two indexes.
Could I know why?
What I wrong in the configuration?
Thanks