From 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:01:36 +0200 Subject: Adding upstream version 0.11.2. Signed-off-by: Daniel Baumann --- src/formats/journald_json_log.json | 84 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/formats/journald_json_log.json (limited to 'src/formats/journald_json_log.json') 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 -- cgit v1.2.3