summaryrefslogtreecommitdiffstats
path: root/src/formats/snaplogic_log.json
blob: db49c69d36c1b08d2bc9e08635015fb3ade083b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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'}"
            }
        ]
    }
}