Last active
July 31, 2021 00:44
-
-
Save mrlesmithjr/eb17fb9e3903fb8231d9bd57dd653769 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter { | |
if [type] == "syslog" { | |
dns { | |
reverse => [ "host" ] | |
action => "replace" | |
} | |
} | |
if "ESXi" in [syslog_host_id] { | |
mutate { | |
add_tag => [ "ESXi" ] | |
} | |
} | |
if "FW" in [syslog_host_id] { | |
mutate { | |
add_tag => [ "FW" ] | |
} | |
} | |
if "NSX" in [syslog_host_id] { | |
mutate { | |
add_tag => [ "NSX" ] | |
} | |
} | |
} | |
filter { | |
if "ESXi" in [tags] { | |
grok { | |
match => [ | |
"message", "blah blah ESXi message pattern(s)" | |
] | |
} | |
} | |
if "FW" in [tags] { | |
grok { | |
match => [ | |
"message", "blah blah FW message pattern(s)" | |
] | |
} | |
} | |
if "NSX" in [tags] { | |
grok { | |
match => [ | |
"message", "blah blah NSX message pattern(s)" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment