Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created March 25, 2014 19:45
Show Gist options
  • Save marianogg9/9769749 to your computer and use it in GitHub Desktop.
Save marianogg9/9769749 to your computer and use it in GitHub Desktop.
if [type] == "log_type" {
grok {
patterns_dir => "/path/patterns"
match => { "message" => "%{my_custom_defined}" }
}
date {
match => [ "timestamp", "%{TIMESTAMP_ISO8601}" ]
}
}
..
.
where my log starts with: 2014-03-11T04:54:08.876941Z ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment