Skip to content

Instantly share code, notes, and snippets.

@gabriel403
Created August 13, 2013 10:38
Show Gist options
  • Save gabriel403/6219970 to your computer and use it in GitHub Desktop.
Save gabriel403/6219970 to your computer and use it in GitHub Desktop.
filter {
grok {
type => 'apache-error'
pattern => "\[%{DATA:timestamp}\] \[%{WORD:loglevel}\] \[%{WORD:originator} %{IP:clientip}\] %{GREEDYDATA:errmsg}"
add_tag => "apache"
}
date {
type => "apache-error"
timestamp => "%{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment