summaryrefslogtreecommitdiffstats
path: root/test/formats/jsontest2/format.json
blob: 167aa0ff2fbf0dc4a6338af1514958ac9c2505f2 (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "json_log2": {
        "title": "Test JSON Log with integer levels",
        "json": true,
        "file-pattern": "logfile_.*json2\\.json",
        "description": "Test config",
        "line-format": [
            {
                "field": "ts"
            },
            " ",
            {
                "field": "ts",
                "timestamp-format": "abc %S def"
            },
            " ",
            {
                "field": "lvl",
                "min-width": 5
            },
            " ",
            {
                "field": "cl",
                "max-width": 5
            },
            " ",
            {
                "field": "msg"
            }
        ],
        "level-field": "lvl",
        "level": {
            "info": 0,
            "error": 10
        },
        "timestamp-field": "ts",
        "body-field": "msg",
        "value": {
            "user": {
                "kind": "string",
                "identifier": true
            },
            "cl": {
                "kind": "string"
            }
        }
    }
}