summaryrefslogtreecommitdiffstats
path: root/src/formats/nextcloud_log.json
blob: 9806ee072506c1b48d702a4a437ac6a10e618f7b (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "nextcloud": {
        "title": "Nextcloud server logs",
        "description": "Nextcloud JSON server logs audit.log, flow.log, and nextcloud.log",
        "url": "https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/logging_configuration.html?highlight=logging#log-field-breakdown",
        "json": true,
        "opid-field": "reqId",
        "level-field": "level",
        "body-field": "message",
        "hide-extra": true,
        "level": {
            "debug": 0,
            "info": 1,
            "warning": 2,
            "error": 3,
            "fatal": 4
        },
        "timestamp-field": "time",
        "convert-to-local-time": true,
        "multiline": false,
        "value": {
            "exception": {
                "kind": "json"
            },
            "app": {
                "kind": "string",
                "identifier": true
            },
            "reqId": {
                "kind": "string",
                "identifier": true
            },
            "remoteAddr": {
                "kind": "string",
                "identifier": true
            },
            "url": {
                "kind": "string"
            },
            "method": {
                "kind": "string"
            },
            "user": {
                "kind": "string",
                "identifier": true
            }
        },
        "line-format": [
            {
                "field": "__timestamp__"
            },
            " ",
            {
                "field": "reqId",
                "max-width": 3,
                "overflow": "truncate"
            },
            " ",
            {
                "field": "remoteAddr",
                "min-width": 15
            },
            " ",
            {
                "field": "__level__",
                "text-transform": "uppercase"
            },
            " ",
            {
                "field": "app"
            },
            " ",
            {
                "field": "message"
            }
        ]
    }
}