Skip to content

Instantly share code, notes, and snippets.

@opie4624
Created March 14, 2012 01:52
Show Gist options
  • Select an option

  • Save opie4624/2033322 to your computer and use it in GitHub Desktop.

Select an option

Save opie4624/2033322 to your computer and use it in GitHub Desktop.
DATESTAMP_ES %{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND},%{NUMBER}
ELASTICSEARCHLOG \[%{DATESTAMP_ES:timestamp}\]\[%{WORD:level}\]\[%{DATA:module}%{SPACE}\] \[%{WORD:name}\]%{SPACE}%{GREEDYDATA:message}
filter {
date {
type => "elasticsearch"
timestamp => "yyyy-MM-dd HH:mm:ss,SSS"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment