Hi.
I've created two conf files under /etc/logstash/conf.d
. Because I have two businesses in two different countries, I want them to be displayed in two separately indexes.
- Index name
nz-*
- Index name
au-*
However, in Kibana when discovering the data, even if I select only index nz-*
, I can still see data from the other one.
What am I doing wrong?
business1.conf:
output {
elasticsearch {
hosts => ["localhost:9200"]
# Weekly index (for pruning)
index => "au-log-index-%{+YYYY.'w'ww}"
}
stdout { codec => rubydebug }
}
business2.conf:
output {
elasticsearch {
hosts => ["localhost:9200"]
# Weekly index (for pruning)
index => "nz-log-index-%{+YYYY.'w'ww}"
}
stdout { codec => rubydebug }
}