Skip to content

Instantly share code, notes, and snippets.

Created September 22, 2015 21:43
Show Gist options
  • Save anonymous/835b09235c9120df47bf to your computer and use it in GitHub Desktop.
Save anonymous/835b09235c9120df47bf to your computer and use it in GitHub Desktop.
input {
tcp { port => 3333 }
}
filter {
grok {
match => { "message" => ["%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}\|%{GREEDYDATA:euca_message}",
"%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}%{BASE10NUM:euca_pid}%{SPACE}%{WORD:euca_function}%{SPACE}\|%{GREEDYDATA:euca_message}",
"%{TIMESTAMP_ISO8601:euca_timestamp}%{SPACE}%{LOGLEVEL:euca_log_level}%{SPACE}%{GREEDYDATA:euca_message}"] }
}
date {
match => ['euca_timestamp', "YYYY-MM-dd HH:mm:ss", "EEE MMM dd HH:mm:ss YYYY"]
}
}
output { elasticsearch_http { host => "localhost" port => "9200" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment