Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Created June 5, 2013 14:14
Show Gist options
  • Save BlackMaria/5714181 to your computer and use it in GitHub Desktop.
Save BlackMaria/5714181 to your computer and use it in GitHub Desktop.
The way I am dealing with grok failures is to create a test case from them. For others in the same boat I suggest you add this "output" to your logstash configs ( I suggest all of them ) and then you are automatically creating test cases to see what failed! NB: It has been suggested to try to pass "_grokparsefailure" tagged files passed the same…
output {
file {
#gzip => true
path => "/var/log/testcases/failed_grok_%{type}"
tags => "_grokparsefailure"
}
# ....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment