Hi,
I am new to ELK and trying to send syslogs based on a customer code to different ES indexes using Logstash.
I am trying following with no luck.
input {
udp {
type => syslogs
port => 5001
}
}
output {
if [message] in "ABC"{
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "abc_index_%{+YYYY.MM.dd}"
}
}
}
Please kindly advice on the correct way of coding this in Logstash config pipe.
Cheers