summaryrefslogtreecommitdiffstats
path: root/src/formats/dpkg_log.json
blob: d4858317a6f99dee649d82d702f1802f67f231df (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "dpkg_log": {
        "title": "Dpkg Log",
        "description": "The debian dpkg log.",
        "regex": {
            "std": {
                "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?) (?:(?:(?<action>startup|status|configure|install|upgrade|trigproc|remove|purge)(?: (?<status>config-files|failed-config|half-configured|half-installed|installed|not-installed|post-inst-failed|removal-failed|triggers-awaited|triggers-pending|unpacked))? (?<package>[^ ]+) (?<installed_version>[^ ]+)(?: (?<available_version>[^ ]+))?)|update-alternatives: (?<body>.*))$"
            }
        },
        "value": {
            "action": {
                "kind": "string",
                "identifier": true
            },
            "status": {
                "kind": "string",
                "identifier": true
            },
            "package": {
                "kind": "string",
                "identifier": true
            },
            "installed_version": {
                "kind": "string"
            },
            "available_version": {
                "kind": "string"
            }
        },
        "sample": [
            {
                "line": "2012-02-14 10:44:10 configure base-files 5.0.0ubuntu20 5.0.0ubuntu20"
            },
            {
                "line": "2012-02-14 10:44:30 status unpacked rsyslog 4.2.0-2ubuntu8"
            },
            {
                "line": "2012-02-14 10:44:32 update-alternatives: run with --install /usr/bin/rview rview /usr/bin/vim.tiny 10"
            }
        ]
    }
}