You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lnav/src/formats/snaplogic_log.json

55 lines
2.1 KiB
JSON

{
"$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'}"
}
]
}
}