summaryrefslogtreecommitdiffstats
path: root/src/formats/journald_json_log.json
blob: b6ec0e99ec53553eab230cee2ee2dc9068070331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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"
            }
        }
    }
}