I am using Nxlog to forward my Windows Server logs to LogStash and trying to remove messages from LogStash that are not equal to a given windows eventId. What is the correct syntax for this?
Here is what i have tried:
if [type] == "WindowsLog" {
if [EventID] <> 123
{
drop { }
}
and:
if [type] == "WindowsLog" {
if ![EventID] == 123
{
drop { }
}
and
if [type] == "WindowsLog" {
if [EventID] != 123
{
drop { }
}