Skip to content

Instantly share code, notes, and snippets.

@yukiman76
Created October 3, 2014 12:22
Show Gist options
  • Save yukiman76/9ab0e750ec78482b07f8 to your computer and use it in GitHub Desktop.
Save yukiman76/9ab0e750ec78482b07f8 to your computer and use it in GitHub Desktop.
input {
stdin {
}
}
filter{
grok {
#10.251.55.76 (193.137.28.200) 10.251.55.76 (193.137.28.200,193.137.28.201,193.137.28.202,193.137.28.203)
match => ["message","%{IPORHOST:clientip} \(%{GREEDYDATA:iplist}\)"]
}
csv {
source => ["iplist"]
columns => ["ip_"]
}
}
output {
stdout { codec => json }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment