summaryrefslogtreecommitdiffstats
path: root/test/bad-config/formats/invalid-regex/format.json
blob: 33807a54ee5f7e30cf5ade8a2f687fb5c12ef486 (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
{
    "bad_regex_log": {
        "title": "invalid regex test",
        "regex": {
            "std": {
                "pattern": "^(?<timestamp>\\d+: (?<body>.*)$"
            },
            "incomplete-match": {
                "pattern": "^(?<timestamp>\\d+);"
            }
        },
        "level": {
            "error": "(foo"
        },
        "timestamp-format": [
            "%i"
        ],
        "sample": [
            {
                "line": "1428634687123; foo"
            }
        ],
        "highlights": {
            "foobar": {
                "pattern": "abc("
            }
        }
    }
}