-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
Hello.
I'm running JournalBeat 7.6.0 which sends unfiltered data to a Logstash 7.6.0 server , all running in one Fedora 30 system.
I just want to process events from sudo command with a priority greather than 1. So, inside a filter { } section in a Logstash conf file I've put this:
if [process][name] != "sudo" and [syslog][priority] > 1 { drop { } }
Well, Logstash breaks very badly with the error message I've attached in following image
Finally I've discovered the problem was the ">" character. So, although it's not the same, I've tried with this other configuration:
if [process][name] != "sudo" and [syslog][priority] != 1 { drop { } }
Writing "!=" instead of ">" makes Logstash not to break, but the bad new is that now the second condition is completely ignored: I record all events generated by sudo regardless the priority value.
So I infer it's a Logstash bug.
P.S: If I put the line include_matches:["syslog.priority=1"]
inside journalbeat.yml file and then I put this condition ( if [process][name] != "sudo" { drop { } }
) in Logstash conf file, it works, so it's not problem from original data: something is wrong when Logstash parses this numerical conditional.
Thanks