Skip to content

Instantly share code, notes, and snippets.

@gbirke
Created August 11, 2016 10:42
Show Gist options
  • Save gbirke/7b011ce2d089d4508227017c8554d230 to your computer and use it in GitHub Desktop.
Save gbirke/7b011ce2d089d4508227017c8554d230 to your computer and use it in GitHub Desktop.
Convert monolog JSON log to plain output
input {
file {
path => "error.log"
start_position => beginning
ignore_older => 0
codec => json
sincedb_path => "/dev/null"
}
}
filter {
date {
match => [ "[datetime][date]", "YYYY-MM-dd HH:mm:ss.SSSSSS" ]
}
}
output {
stdout {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment