summaryrefslogtreecommitdiffstats
path: root/src/formats/engine_log.json
blob: eeea2e80fb98acc525c43451f84ef1e1d9ba2994 (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",
    "engine_log": {
        "title": "engine log",
        "description": "The log format for the engine.log files from RHEV/oVirt",
        "regex": {
            "std": {
                "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}+)\\s+(?<level>\\w+)\\s+\\[(?<logger>[^\\]]+)\\]\\s+\\((?<tid>[^\\)]+)\\)\\s+(?<body>.*)"
            }
        },
        "opid-field": "tid",
        "value": {
            "tid": {
                "kind": "string",
                "identifier": true
            },
            "logger": {
                "kind": "string",
                "identifier": true
            }
        },
        "level-field": "level",
        "level": {
            "error": "ERROR",
            "info": "INFO",
            "warning": "WARN"
        },
        "sample": [
            {
                "line": "2014-09-21 04:01:29,522 INFO  [org.ovirt.engine.core.bll.OvfDataUpdater] (DefaultQuartzScheduler_Worker-90) Successfully updated VM OVFs in Data Center Test"
            }
        ]
    }
}