Skip to content

Instantly share code, notes, and snippets.

@coolacid
Created January 22, 2015 16:01
Show Gist options
  • Save coolacid/9b760ef8bc6d0ca1a2ec to your computer and use it in GitHub Desktop.
Save coolacid/9b760ef8bc6d0ca1a2ec to your computer and use it in GitHub Desktop.
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