Hi I am reading stdout and filtering both apache and application logs using logstash as below
input {
beats {
port => 5044
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
json {
source => "message"
}
}
output { elasticsearch { hosts => "http://elasticsearch-master:9200"} }
These logs are reaching the elastic search properly, however how can i give a seperate index in es for apache and application log in logstash output here?