diff options
Diffstat (limited to 'src/formats/cups_log.json')
-rw-r--r-- | src/formats/cups_log.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/formats/cups_log.json b/src/formats/cups_log.json new file mode 100644 index 0000000..b79f636 --- /dev/null +++ b/src/formats/cups_log.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "cups_log": { + "title": "CUPS log format", + "description": "Log format used by the Common Unix Printing System", + "regex": { + "system": { + "pattern": "^(?<level>[IEW]) \\[(?<timestamp>\\d{2}/\\S{3,8}/\\d{4}:\\d{2}:\\d{2}:\\d{2} [+-]\\d{2,4})\\] (?<section>\\w+): (?<body>.*)$" + }, + "default": { + "pattern": "^(?<level>[IEW]) \\[(?<timestamp>\\d{2}/\\S{3,8}/\\d{4}:\\d{2}:\\d{2}:\\d{2} [+-]\\d{2,4})\\] (?!\\w+:)(?<body>.*)$" + } + }, + "level": { + "error": "E", + "warning": "W" + }, + "value": { + "level": { + "kind": "string", + "identifier": true + }, + "section": { + "kind": "string", + "identifier": true + }, + "body": { + "kind": "string" + } + }, + "sample": [ + { + "line": "I [04/Nov/2010:17:37:40 -0400] Allowing up to 100 client connections per host." + }, + { + "line": "I [04/Nov/2010:17:37:40 -0400] LoadPPDs: Wrote \"/etc/cups/ppds.dat\", 14 PPDs..." + }, + { + "line": "E [04/Nov/2010:17:37:40 -0400] StartListening: Unable to find IP address for server name \"localhost.localdomain\" - Host name lookup failure" + } + ] + } +}
\ No newline at end of file |