diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:01:36 +0000 |
commit | 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 (patch) | |
tree | adbbaf3acf88ea08f6eeec4b75ee98ad3b07fbdc /src/formats/dpkg_log.json | |
parent | Initial commit. (diff) | |
download | lnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.tar.xz lnav-62e4c68907d8d33709c2c1f92a161dff00b3d5f2.zip |
Adding upstream version 0.11.2.upstream/0.11.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/formats/dpkg_log.json')
-rw-r--r-- | src/formats/dpkg_log.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/formats/dpkg_log.json b/src/formats/dpkg_log.json new file mode 100644 index 0000000..d485831 --- /dev/null +++ b/src/formats/dpkg_log.json @@ -0,0 +1,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" + } + ] + } +}
\ No newline at end of file |