summaryrefslogtreecommitdiffstats
path: root/src/formats/papertrail_log.json
blob: b1a9d87e9a0f14363601104ea9b7a9a638fffd4b (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
46
47
48
49
50
51
52
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "papertrail_log": {
        "title": "Papertrail Service",
        "url": "https://papertrailapp.com/",
        "description": "Log format for the papertrail log management service",
        "json": true,
        "hide-extra": true,
        "file-pattern": "pt:.*",
        "line-format": [
            {
                "field": "display_received_at"
            },
            " ",
            {
                "field": "hostname"
            },
            " ",
            {
                "field": "program"
            },
            ": ",
            {
                "field": "message"
            }
        ],
        "level-field": "severity",
        "level": {
            "error": "Error",
            "debug": "Debug",
            "warning": "Warning",
            "info": "Info(?:rmational)?|Notice",
            "critical": "Crit(?:ical)?",
            "fatal": "Emerg(?:ency)?|Alert"
        },
        "timestamp-field": "generated_at",
        "body-field": "message",
        "value": {
            "display_received_at": {
                "kind": "string"
            },
            "program": {
                "kind": "string",
                "identifier": true
            },
            "hostname": {
                "kind": "string",
                "identifier": true
            }
        }
    }
}