summaryrefslogtreecommitdiffstats
path: root/test/formats/collision/format.json
diff options
context:
space:
mode:
Diffstat (limited to 'test/formats/collision/format.json')
-rw-r--r--test/formats/collision/format.json48
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."
+ }
+ ]
+ }
+}