summaryrefslogtreecommitdiffstats
path: root/test/bad-config/formats/invalid-file-format/format.json
blob: cca2b4776a3a2dda9a143a6a3bfa43efda84f568 (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",
    "bad_file_format1": {
        "title": "bad file format",
        "regex": {
            "std": {
                "pattern": "(?<timestamp>\\d+): (?<body>.*)$"
            }
        },
        "converter": {
            "header": {
                "expr": {
                    "default": ":header REGEXP 'foobar"
                },
                "size": 8
            }
        },
        "timestamp-format": [
            "%i"
        ],
        "sample": [
            {
                "line": "1234: abcd"
            }
        ]
    }
}