Hi,
Please help me with the if condition filter in logstash for same KQL querymentioned below.
message: *.url.* and not *failover*
Below logstash filter is not working
filter{
if ([message] != ‘.\.url\..’ and [message] == ‘.failover.’)
{
grok{}
}
else{
drop{}
}
}
Badger
February 9, 2021, 9:08pm
2
Use a substring match
if ".url." in [message] and "failover" not in [message] {
Thank you @Badger for your reply.
Can you please tell me how can I use .url. with wildcard on both ends?, like this *.url.* in KQL.
Badger
February 9, 2021, 9:33pm
4
"something" in [message]
is a substring match. It does not need wildcards at each end, they are implicit.
system
(system)
Closed
March 9, 2021, 9:33pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.