diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /test/formats/collision | |
parent | Initial commit. (diff) | |
download | lnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/formats/collision')
-rw-r--r-- | test/formats/collision/format.json | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/test/formats/collision/format.json b/test/formats/collision/format.json new file mode 100644 index 0000000..35c25c0 --- /dev/null +++ b/test/formats/collision/format.json @@ -0,0 +1,48 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "zblued_log": { + "title": "blued", + "regex": { + "std": { + "pattern": "^(?<timestamp>\\w{3}\\s+\\d{1,2} \\d{2}:\\d{2}:\\d{2})(?: (?<log_hostname>[a-zA-Z0-9:][^ ]+[a-zA-Z0-9]))? blued(?:\\[(?<log_pid>\\d+)])?:(?<body>(?:.|\\n)*)$" + } + }, + "level-field": "body", + "level": { + "error": "(?:failed|failure|error)", + "warning" : "(?:warn|not responding|init: cannot execute)" + }, + "value" : { + "log_hostname" : { + "kind" : "string", + "collate" : "ipaddress", + "identifier" : true + } + }, + "sample" : [ + { + "line" : "Apr 4 20:02:32 Tim-Stacks-iMac.local blued[59]: Release the WiFi lock" + } + ] + }, + "xerror_log" : { + "title" : "Common Error Log", + "description" : "The default web error log format for servers like Apache.", + "regex" : { + "cups" : { + "pattern" : "^(?<level>\\w) \\[(?<timestamp>[^\\]]+)\\] (?<body>.*)" + } + }, + "level-field": "level", + "level" : { + "error" : "E", + "warning" : "W", + "info" : "I" + }, + "sample" : [ + { + "line" : "E [08/Jun/2013:11:28:58 -0700] Unknown directive BrowseOrder on line 22 of /private/etc/cups/cupsd.conf." + } + ] + } +} |