Skip to content

Instantly share code, notes, and snippets.

@clarkdave
Created May 10, 2014 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save clarkdave/bb55741d4545d0f4fe8d to your computer and use it in GitHub Desktop.
Save clarkdave/bb55741d4545d0f4fe8d to your computer and use it in GitHub Desktop.
Logstash / Sentry config
input {
redis {
'data_type' => "list"
'host' => "127.0.0.1"
'key' => "logstash"
'type' => "redis-input"
}
}
filter {
if [type] == "app" {
json {
'source' => "message"
'target' => "fields"
}
mutate {
'rename' => ["[fields][msg]", "message"]
}
}
}
output {
elasticsearch { host => "es1.internal" cluster => "elasticsearch" }
graphite { host => "graphite1.internal" metrics => ["logstash.events", "1"] }
if [fields][level] >= 40 {
sentry {
'key' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
'project_id' => "xxxxx"
'secret' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment