Last active
May 27, 2020 19:59
-
-
Save picaron/afd13d63dce220cc0e532296748ea9fb to your computer and use it in GitHub Desktop.
lnav format file for Monolith logs, to install do: lnav -i monolith_log.json
This file contains 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
{ | |
"monolith_log": { | |
"title": "Monolith Log Format", | |
"description": "Log format used by the monolith", | |
"json": true, | |
"timestamp-field": "@timestamp", | |
"level-field": "level", | |
"level": { | |
"trace": "TRACE", | |
"debug": "DEBUG", | |
"info": "INFO", | |
"warning": "WARN", | |
"error": "ERROR" | |
}, | |
"body-field": "message", | |
"value": { | |
"@timestamp": { | |
"kind": "string", | |
"hidden": false | |
}, | |
"message": { | |
"kind": "string", | |
"hidden": false | |
}, | |
"@version": { | |
"kind": "string", | |
"hidden": true | |
}, | |
"level_value": { | |
"kind": "integer", | |
"hidden": true | |
}, | |
"caller_file_name": { | |
"kind": "string", | |
"hidden": true | |
}, | |
"caller_line_number": { | |
"kind": "integer", | |
"hidden": true | |
}, | |
"logger_name": { | |
"kind": "string", | |
"hidden": false | |
}, | |
"thread_name": { | |
"kind": "string", | |
"hidden": false | |
}, | |
"caller_class_name": { | |
"kind": "string", | |
"hidden": true | |
}, | |
"caller_method_name": { | |
"kind": "string", | |
"hidden": true | |
}, | |
"stack_trace": { | |
"kind": "string", | |
"hidden": false | |
} | |
}, | |
"line-format": [ | |
{ | |
"field": "@timestamp" | |
}, | |
" ", | |
{ | |
"field": "level" | |
}, | |
" ", | |
{ | |
"field": "logger_name" | |
}, | |
" ", | |
{ | |
"field": "thread_name" | |
}, | |
" ", | |
{ | |
"field": "message" | |
}, | |
"\n", | |
{ | |
"field": "stack_trace" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment