diff options
Diffstat (limited to 'src/formats/candlepin_log.json')
-rw-r--r-- | src/formats/candlepin_log.json | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/formats/candlepin_log.json b/src/formats/candlepin_log.json new file mode 100644 index 0000000..cab0395 --- /dev/null +++ b/src/formats/candlepin_log.json @@ -0,0 +1,49 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "candlepin_log": { + "title": "Candlepin log format", + "description": "Log format used by Candlepin registration system", + "regex": { + "reqorg": { + "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2},\\d{3}) \\[(req=(?<req>[0-9a-f-]+)|=), org=(?<org>\\w*)\\] (?<alert_level>\\w+) (?<module>[\\w.]+) - (?<body>.*)$" + }, + "other": { + "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}[+-]\\d{4}) (?<body>.*)$" + } + }, + "value": { + "req": { + "kind": "string", + "identifier": true + }, + "org": { + "kind": "string", + "identifier": true + }, + "alert_level": { + "kind": "string" + }, + "module": { + "kind": "string", + "identifier": true + }, + "body": { + "kind": "string" + } + }, + "sample": [ + { + "line": "2015-04-17 09:41:50,544 [=, org=] INFO org.candlepin.guice.CustomizableModules - Found custom module module.config.katello" + }, + { + "line": "2015-04-17 09:41:56,320 [req=f91d4a84-020d-4874-9741-3979d0baf58d, org=] INFO org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/status" + }, + { + "line": "2015-04-17 09:42:39+0200 principalType=trusteduser principal=admin target=OWNER entityId=8ab219c64cc653a7014cc6545a6c0001 type=CREATED owner=8ab219c64cc653a7014cc6545a6c0001" + }, + { + "line": "2015-04-17 10:49:21,912 [req=ec7867ea-2501-4036-bb08-e2d830720cb5, org=npr_goep_hm_com] INFO org.candlepin.common.filter.LoggingFilter - Response: status=200, content-type=\"application/json\", time=235ms" + } + ] + } +}
\ No newline at end of file |