Created
August 11, 2016 10:42
-
-
Save gbirke/7b011ce2d089d4508227017c8554d230 to your computer and use it in GitHub Desktop.
Convert monolog JSON log to plain output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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