diff options
Diffstat (limited to '')
-rw-r--r-- | src/formats/snaplogic_log.json | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/formats/snaplogic_log.json b/src/formats/snaplogic_log.json new file mode 100644 index 0000000..db49c69 --- /dev/null +++ b/src/formats/snaplogic_log.json @@ -0,0 +1,55 @@ +{ + "$schema": "https://lnav.org/schemas/format-v1.schema.json", + "snaplogic_log": { + "title": "SnapLogic Server Log", + "description": "The SnapLogic server log format.", + "url": "http://www.snaplogic.com/docs/user-guide/user-guide.htm", + "regex": { + "std": { + "pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{3})?) (?:(?:(?<level>\\w{4,}) (?<logger>[^ ]+) (?<facility>[^ ]+) (?<msgid>[^ ]+) (?<pipe_rid>-|\\d+)(?:\\.(?<comp_rid>[^ ]+))? (?<resource_name>[^ ]+) (?<invoker>[^ ]+))|(?:(?:stdout|stderr): ))(?<body>.*)" + } + }, + "level-field": "level", + "level": { + "error": "ERROR", + "debug": "DEBUG", + "info": "INFO", + "warning": "WARNING" + }, + "value": { + "logger": { + "kind": "string", + "identifier": true + }, + "facility": { + "kind": "string", + "identifier": true + }, + "msgid": { + "kind": "string", + "identifier": true + }, + "pipe_rid": { + "kind": "string", + "identifier": true + }, + "comp_rid": { + "kind": "string", + "identifier": true + }, + "resource_name": { + "kind": "string", + "identifier": true + }, + "invoker": { + "kind": "string", + "identifier": true + } + }, + "sample": [ + { + "line": "2013-07-30T09:40:25 DEBUG main_process.main PM - 1768839331504132353247612213662950165988626018 - - Pipeline manager '' sending to Leads. Invoker 'admin': PREPARE {'parent_rid': '1768839331504132353247612213662950165988626018', 'resource_name': u'Leads', 'input_views': {}, 'parameters': {u'DELIMITER': u',', u'INPUTFILE': u'file://tutorial/data/leads.csv'}, 'output_views': {u'Output1': {'method': 'GET'}}, 'context_name': u'', 'snap_control_version': '1.2'}" + } + ] + } +}
\ No newline at end of file |