summaryrefslogtreecommitdiffstats
path: root/test/bad-config/formats/invalid-properties/format.json
blob: a69a179aa68c4a88a21ee01b0ecd70a86723a764 (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "invalid_props_log": {
        "title": "invalid properties",
        "regex": {
            "std": {
                "pattern": "^(?<timestamp>\\d+): (?<pid>\\w+) (?<body>.*)$"
            }
        },
        "timestamp-field": "ts",
        "subsecond-field": "ts-sub",
        "sample": [
            {
                "line": "1428634687123: 1234 abc"
            }
        ],
        "value": {
            "non-existent": {
                "kind": "string"
            }
        },
        "highlights": {
            "hl1": {
                "color": "not a color",
                "background-color": "also not a color"
            }
        },
        "tags": {
            "badtag": {
                "paths": []
            },
            "badtag2": {
                "pattern": ""
            },
            "badtag3": {
                "pattern": "invalid(abc"
            }
        },
        "search-table": {
            "bad_table_regex": {
                "pattern": "abc(def"
            }
        }
    }
}