diff options
Diffstat (limited to '')
-rw-r--r-- | src/formats/papertrail_log.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/formats/papertrail_log.json b/src/formats/papertrail_log.json new file mode 100644 index 0000000..b1a9d87 --- /dev/null +++ b/src/formats/papertrail_log.json @@ -0,0 +1,52 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "papertrail_log": { + "title": "Papertrail Service", + "url": "https://papertrailapp.com/", + "description": "Log format for the papertrail log management service", + "json": true, + "hide-extra": true, + "file-pattern": "pt:.*", + "line-format": [ + { + "field": "display_received_at" + }, + " ", + { + "field": "hostname" + }, + " ", + { + "field": "program" + }, + ": ", + { + "field": "message" + } + ], + "level-field": "severity", + "level": { + "error": "Error", + "debug": "Debug", + "warning": "Warning", + "info": "Info(?:rmational)?|Notice", + "critical": "Crit(?:ical)?", + "fatal": "Emerg(?:ency)?|Alert" + }, + "timestamp-field": "generated_at", + "body-field": "message", + "value": { + "display_received_at": { + "kind": "string" + }, + "program": { + "kind": "string", + "identifier": true + }, + "hostname": { + "kind": "string", + "identifier": true + } + } + } +}
\ No newline at end of file |