I have a "logstash" index with documents while I have hardcoded the name of the output index by the tags.
when I check in the index "logstash" my logs have the right tag "windows" or "iptable" ...
I added a final "else" to be sure
I have try with 7.12.0 and 7.12.1 with the same result
I don't find why I've got the logstash index.
my output.conf
output {
if "iptable" in [tags] {
elasticsearch {
index => "firewall"
hosts => ["http://elasticsearch:9200"]
}
}
else if "winlogbeats" in [tags] {
elasticsearch {
index => "winlogbeats"
hosts => ["http://elasticsearch:9200"]
}
}
else if "windows" in [tags] {
elasticsearch {
index => "windows"
hosts => ["http://elasticsearch:9200"]
}
}
else {
elasticsearch {
index => "notag"
hosts => ["http://elasticsearch:9200"]
}
}
}