I have a Syslog tcp input thats my catch all when I cant setup a defined input. Anyway, the input file sets the type as "syslog"
tcp {
port => 5140
type => "syslog"
}
I then have another config file, called 01-syslog.conf
with a filter for that syslog type
filter {
if [type] == "Syslog" {
if [host] =~ /192\.168\.56\.1/ or [host] =~ /192\.168\.56\.2/ {
mutate {
replace => { "type" => "firewall" }
}
}
}
}
I then have another config file for the firewall filter 02-firewall.conf
filter {
if [type] == "firewall" {
}
}
So my question is how or in what order does Logstash process the configs? I want to make sure that the Syslog filter is processed before the firewall filter since the firewall type is set within the syslog filter. Plus ill probably want to add additional configs down the road.
So there is:
00-inputs.conf
01-syslog.conf
02-firewall.conf
...
...
09-futureservice.conf