summaryrefslogtreecommitdiffstats
path: root/test/formats/jsontest/format.json
blob: 78300e915e2b800102d1058ac17f730b5cbe2dde (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "test_log" : {
        "title" : "Test JSON Log",
        "json" : true,
        "file-pattern" : "logfile_json\\.json",
        "description" : "Test config",
        "line-format" : [
            "\n[",
            { "field" : "ts" },
            "] ",
            { "field" : "lvl" },
            " ",
            { "field" : "msg" }
        ],
        "level-field" : "lvl",
        "timestamp-field": "ts",
        "body-field" : "msg",
        "value" : {
            "msg" : {
                "rewriter" : ";SELECT :msg || 'bork bork bork'"
            },
            "arr" : {
                "kind" : "json"
            },
            "obj" : {
                "kind" : "json"
            },
            "user" : {
                "kind" : "string",
                "identifier" : true,
                "rewriter" : "|rewrite-user"
            }
        }
    }
}