Hi There ,
Iam trying to drop multiple events in logstash , how to implement it
As of now i use two different filters , but I want it in one filter
filter {
if "windows_ad" in [tags] {
if [event_id] == 5157 {
drop { }
}
}
}
I tried this it doesnt work
filter {
if "windows_ad" in [tags] {
if [event_id] == ["5157", "5158"] {
drop { }
}
}
}
Could any one help me to execute it
saif
(saif)
November 8, 2018, 1:03pm
2
Hello ,
if [event_id] in ['5157', '5158']
No I Have tried that as well ,it doesnt work
You mean like this
filter {
if "windows_ad" in [tags] {
if [5157 ] or [5158] in [event_id]
{
drop { }
}
}
}
and i tried with quotes as well like this
if " [5157 ] or [5158] " in [event_id]
it doesnt work
saif
(saif)
November 8, 2018, 2:16pm
6
the type of [event_id] is text ?
system
(system)
Closed
December 6, 2018, 2:16pm
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.