Hi Team,
My logstash is sending Json log data to below two indexes
- project-%{environment}-%{type}-%{+YYYY.MM.dd}
- filebeat-%{+YYYY.MM.dd}
PFB my logstash.conf, what condition i should put to stop sending Json log data on filebeat-* indexes.
I have almost 10 such types, and don't want to use lot of IF/ELSE conditions.
output {
if [type] == "json-log"
{
elasticsearch {
hosts => ["http://elasticsearch....:9200"]
index => "project-%{environment}-%{type}-%{+YYYY.MM.dd}"
}
}
elasticsearch {
hosts => ["http://elasticsearch.....:9200"]
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
}
}
Thanks & Regards,