diff options
Diffstat (limited to '')
-rw-r--r-- | src/formats/journald_json_log.json | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/formats/journald_json_log.json b/src/formats/journald_json_log.json new file mode 100644 index 0000000..b6ec0e9 --- /dev/null +++ b/src/formats/journald_json_log.json @@ -0,0 +1,84 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "journald_json_log": { + "title": "journalctl JSON log format", + "description": "Logger format as created by systemd journalctl -o json", + "url": "https://www.freedesktop.org/wiki/Software/systemd/json/", + "json": true, + "hide-extra": true, + "convert-to-local-time": true, + "line-format": [ + { + "field": "__REALTIME_TIMESTAMP" + }, + " ", + { + "field": "__MONOTONIC_TIMESTAMP" + }, + " ", + { + "field": "_SYSTEMD_UNIT" + }, + " ", + { + "field": "SYSLOG_IDENTIFIER" + }, + "[", + { + "field": "_PID" + }, + "] ", + { + "field": "__level__", + "text-transform": "uppercase" + }, + " ", + { + "field": "MESSAGE" + } + ], + "timestamp-field": "__REALTIME_TIMESTAMP", + "timestamp-format": [ + "%6" + ], + "level-field": "PRIORITY", + "level": { + "fatal": "0|1", + "critical": "2", + "error": "3", + "warning": "4", + "stats": "5", + "info": "6", + "debug": "7" + }, + "body-field": "MESSAGE", + "value": { + "__REALTIME_TIMESTAMP": { + "kind": "integer" + }, + "__MONOTONIC_TIMESTAMP": { + "kind": "integer" + }, + "_SYSTEMD_UNIT": { + "kind": "string", + "identifier": true + }, + "SYSLOG_IDENTIFIER": { + "kind": "string", + "identifier": true + }, + "_PID": { + "kind": "integer", + "identifier": true + }, + "PRIORITY": { + "kind": "string", + "identifier": true, + "foreign-key": true + }, + "MESSAGE": { + "kind": "string" + } + } + } +}
\ No newline at end of file |