summaryrefslogtreecommitdiffstats
path: root/test/formats/jsontest-subsec/format.json
blob: 8469c7f5f117a25b51b2633eb1c2baba5c8ea65f (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "subsec_json_log": {
        "title": "JSON Log with subsecond field",
        "json": true,
        "file-pattern": "logfile_json_subsec\\.json",
        "line-format": [
            {
                "field": "__timestamp__"
            },
            " ",
            {
                "field": "msg"
            }
        ],
        "timestamp-field": "instant/epochSecond",
        "subsecond-field": "instant/nanoOfSecond",
        "subsecond-units": "nano",
        "body-field": "msg",
        "value": {
            "instant": {
                "kind": "json",
                "hidden": true
            }
        }
    }
}