Skip to content

Instantly share code, notes, and snippets.

@garethr
Created September 18, 2013 09:24
Show Gist options
  • Save garethr/6606714 to your computer and use it in GitHub Desktop.
Save garethr/6606714 to your computer and use it in GitHub Desktop.
Simplistic grok filter for parsing naxsi errors from nginx logs
grok {
type => "nginx_error"
match => ["message", "ip=%{IP:client_ip}&server=%{IP:server_ip}&uri=%{PATH:uri}&total_processed=%{NUMBER:total_processed}&total_blocked=%{NUMBER:total_blocked}&zone0=%{WORD:zone}&id0=%{NUMBER:id}"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment