summaryrefslogtreecommitdiffstats
path: root/test/formats/nestedjson/format.json
blob: afa6b080a26fdb1ccd41014f20e770edf78d4e23 (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "ntest_log": {
        "title": "Test JSON Log",
        "json": true,
        "file-pattern": "logfile_(nested|invalid)_json\\d*\\.json",
        "description": "Test config",
        "line-format": [
            {
                "field": "ts"
            },
            " ",
            {
                "field": "/@fields/lvl"
            },
            " ",
            { "field" : "@fields/msg" }
        ],
        "level-field" : "/@fields/lvl",
        "timestamp-field": "ts",
        "body-field" : "@fields/msg",
        "value" : {
            "@fields/user" : {
                "kind" : "string",
                "identifier" : true
            },
            "@fields/trace#" : {
                "kind" : "string"
            }
        }
    }
}