Nxlog を使用して Windows Server ログを LogStash に転送し、特定の Windows eventId と等しくないメッセージを LogStash から削除しようとしています。これの正しい構文は何ですか?
これが私が試したことです:
if [type] == "WindowsLog" {
if [EventID] <> 123
{
drop { }
}
と:
if [type] == "WindowsLog" {
if ![EventID] == 123
{
drop { }
}
と
if [type] == "WindowsLog" {
if [EventID] != 123
{
drop { }
}