From 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:01:36 +0200 Subject: Adding upstream version 0.11.2. Signed-off-by: Daniel Baumann --- src/formats/page_log.json | 67 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/formats/page_log.json (limited to 'src/formats/page_log.json') diff --git a/src/formats/page_log.json b/src/formats/page_log.json new file mode 100644 index 0000000..0758b13 --- /dev/null +++ b/src/formats/page_log.json @@ -0,0 +1,67 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "page_log": { + "title": "CUPS Page Log", + "description": "The CUPS server log of printed pages.", + "url": "http://www.cups.org/documentation.php/doc-1.7/ref-page_log.html", + "multiline": false, + "regex": { + "pre-1.7": { + "pattern": "^(?[\\w_\\-\\.]+) (?[\\w\\.\\-]+) (?\\d+) \\[(?[^\\]]+)\\] (?total|\\d+) (?\\d+) (?[^ ]+) (?[\\w\\.:\\-]+)$" + }, + "1.7": { + "pattern": "^(?[\\w_\\-\\.]+) (?[\\w\\.\\-]+) (?\\d+) \\[(?[^\\]]+)\\] (?total|\\d+) (?\\d+) (?[^ ]+) (?[\\w\\.:\\-]+) (?.+) (?[^ ]+) (?.+)(?.*)$" + } + }, + "value": { + "printer": { + "kind": "string", + "identifier": true + }, + "username": { + "kind": "string", + "identifier": true + }, + "job_id": { + "kind": "integer", + "identifier": true, + "foreign-key": true + }, + "page_number": { + "kind": "string" + }, + "num_copies": { + "kind": "integer" + }, + "job_billing": { + "kind": "string", + "identifier": true + }, + "job_originating_hostname": { + "kind": "string", + "collate": "ipaddress", + "identifier": true + }, + "job_name": { + "kind": "string", + "identifier": true + }, + "media": { + "kind": "string", + "identifier": true + }, + "sides": { + "kind": "string", + "identifier": true + } + }, + "sample": [ + { + "line": "Photosmart_7520_series stack 11 [18/May/2013:13:21:15 -0700] total 0 - localhost 5615311548-159003235-tickets.pdf Letter one-sided" + }, + { + "line": "tec_IS2027 kurt 401 [22/Apr/2003:10:28:43 +0100] 1 3 #marketing 10.160.50.13" + } + ] + } +} \ No newline at end of file -- cgit v1.2.3