summaryrefslogtreecommitdiffstats
path: root/test/expected/test_regex101.sh_cbd859487e4ea011cd6e0f0f114d70158bfd8b43.out
blob: c06f523795730658cbf3382d462434023c350f4d (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "unit_test_log": {
        "description": "Format file generated from regex101 entry -- https://regex101.com/r/zpEnjV/2",
        "regex": {
            "std": {
                "pattern": "\\[(?<timestamp>\\d+\\/\\d+\\/\\d+ \\d+:\\d+:\\d+) (?<jobserver>[\\w.]+) (?<workqueue>[\\w.]+) (?<processid>\\d+)\\] (?<body>.*)$"
            }
        },
        "value": {
            "jobserver": {
                "kind": "string"
            },
            "processid": {
                "kind": "string"
            },
            "timestamp": {
                "kind": "string"
            },
            "workqueue": {
                "kind": "string"
            }
        },
        "sample": [
            {
                "line": "[03/22/2021 02:00:02 job1074.example.com db.db81.example_events 54026] {\"ELAPSED\":\"0.011\",\"LEVEL\":\"info\",\"MESSAGE\":\"finished in 0.011\\n\",\"PREFIX\":\"YFgyWQriCmsAAofJAAAAHg\",\"ROUTINGKEY\":\"EXAMPLE1366.Example.Events._Publish\"}"
            },
            {
                "description": "sample 1",
                "line": "[03/22/2021 02:00:02 job1074.example.com db.db81.example_events 54026] {\"ELAPSED\":\"0.011\",\"LEVEL\":\"info\",\"MESSAGE\":\"finished in 0.011\\n\",\"PREFIX\":\"YFgyWQriCmsAAofJAAAAHg\",\"ROUTINGKEY\":\"EXAMPLE1366.Example.Events._Publish\"}"
            }
        ]
    }
}