Created
January 22, 2015 16:01
-
-
Save coolacid/9b760ef8bc6d0ca1a2ec to your computer and use it in GitHub Desktop.
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 { | |
generator { | |
message => "9.8.7.6 5.4.3.2" | |
count => 1 | |
} | |
} | |
filter { | |
grok { | |
match => [ "message", "%{IPORHOST:src} %{IPORHOST:dst}" ] | |
} | |
mutate { | |
add_field => [ "iptmp", "%{src} %{dst}" ] | |
} | |
mutate { | |
split => [ "iptmp", " " ] | |
} | |
} | |
output { | |
stdout { codec => rubydebug} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment