Created
November 2, 2016 12:12
-
-
Save donaldh/89b7304981f96497c94fe4d98bb03d71 to your computer and use it in GitHub Desktop.
Parsing IOS & XR syslogs
This file contains hidden or 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
input { | |
udp { | |
port => 514 | |
type => "syslog" | |
} | |
} | |
filter { | |
if [type] == "syslog" { | |
grok { | |
match => { "message" => [ | |
# IOS-XR 6.x.x | |
"<%{INT:priority}>%{NUMBER:seq#}: %{DATA:node}:%{CISCOTIMESTAMP:log_date} : %{DATA:process}\[%{INT:pid}\]: %%{WORD:category}-%{WORD:group}-%{INT:severity}-%{WORD:mnemonic} : %{GREEDYDATA:message}", | |
# IOS | |
"<%{INT:priority}>%{NUMBER:seq#}: \*%{CISCOTIMESTAMP:log_date}: %%{WORD:category}-%{INT:severity}-%{WORD:mnemonic}: %{GREEDYDATA:message}" ] | |
} | |
overwrite => [ "message" ] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment