Skip to content

Instantly share code, notes, and snippets.

@jkburges
Created September 7, 2014 23:07
Show Gist options
  • Save jkburges/eb75739491de76aac3c8 to your computer and use it in GitHub Desktop.
Save jkburges/eb75739491de76aac3c8 to your computer and use it in GitHub Desktop.
filter {
grok {
match => { "message" => "%{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:level}%{SPACE}\[%{NOTSPACE:thread_id}\]%{SPACE}\[%{DATA:user}\]%{SPACE}%{DATA:category}%{SPACE}- %{GREEDYDATA:log_msg}" }
}
# Specific to portal - move to databag.
grok {
match => {
"category" => "client-log",
"log_msg" => "session ID: %{WORD:session_id}, message: %{GREEDYDATA:client_msg}"
}
}
date {
match => [ "timestamp" , "ISO8601" ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment