summaryrefslogtreecommitdiffstats
path: root/test/formats/jsontest3/format.json
blob: 63cc2a6b323fb69b38186424f2693c1f0133c5c4 (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "json_log3": {
        "title": "Test JSON Log Format",
        "description": "Test JSON Log Format",
        "file-pattern": "logfile_.*json3\\.json",
        "json": true,
        "hide-extra": true,
        "convert-to-local-time": true,
        "line-format": [
            {
                "field": "__timestamp__"
            },
            " ",
            {
                "field": "client_ip"
            },
            " ",
            {
                "field": "request/method"
            },
            " ",
            {
                "field": "response/status"
            },
            " ",
            {
                "field": "request/uri"
            }
        ],
        "value": {
            "started_at": {
                "kind": "integer",
                "identifier": true
            },
            "client_ip": {
                "kind": "string",
                "identifier": true
            },
            "request/method": {
                "kind": "string",
                "identifier": true
            },
            "request/uri": {
                "kind": "string",
                "identifier": true
            },
            "request/size": {
                "kind": "integer",
                "identifier": false,
                "hidden": true
            },
            "response/status": {
                "kind": "string"
            },
            "details1": {
                "hidden": true
            },
            "details2": {
                "hidden": true
            },
            "details3": {
                "hidden": true
            }
        },
        "timestamp-field": "started_at",
        "timestamp-divisor": 1000,
        "level-field": "response/status",
        "level": {
            "info": "2\\d+",
            "warning": "4\\d+",
            "critical": "5\\d+"
        }
    }
}