mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
84 lines
2.2 KiB
JSON
84 lines
2.2 KiB
JSON
{
|
|
"$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"
|
|
}
|
|
}
|
|
}
|
|
} |