Hi
I'm in the process of trying to migrate my config from 6.7 to 8.x
I have found I have to rewrite my logstash rules - okay probably a good time to do that.
On that note - my filebeat 6.7 client worked fine, when i upgraded my client o 8.4 it started to fail - but all good.
what I would like some help on is
I base the index on the host name I have env dev1 dev2 dev3 etc. each inv has app1 app3 app5 db jmp rp so dev1app1 dev1app3 etc etc .
so i have a if then else with lots of else if basically doing this
if [host][name] =~ "^dev10" {
mutate {
add_field => { "env" => "dev10" }
}
} else if [host][name]=~ "^dev11" {
....
I was thinking it would be better if I can regex out the env from the hostname
with something like
grok {
match => {
[host][name] => "^(?<env>)(app|geode|rp|db|jmp)"
}
}
But that doesn't work
help please