Currently I need to ignore some log in logstash.
my logstash input is as below:
input {
udp {
port => 5001
format => "json"
type => "udp"
}
}
logs like {"key1":"value1", "key2":"value2"} will send to port 5001
I like to drop all logs that with "key1":"value1", how can I achieve it?
I'v tried
filter {
grep {
match => { "key1" => "value1" }
negate => true
}
}
it doesn't work.