diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /src/formats/journald_json_log.json | |
parent | Initial commit. (diff) | |
download | lnav-upstream.tar.xz lnav-upstream.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/formats/journald_json_log.json')
-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 |