summaryrefslogtreecommitdiffstats
path: root/src/formats/sssd_log.json
blob: 04f3a770e394101d6efdeb3e6e13617e400c6bbc (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
{
    "$schema": "https://lnav.org/schemas/format-v1.schema.json",
    "sssd_log": {
        "title": "SSSD log format",
        "description": "Log format used by the System Security Services Daemon",
        "url": "http://fedorahosted.org/sssd",
        "regex": {
            "core": {
                "pattern": "^\\((?<timestamp>\\S{3,8} \\S{3,8} ( \\d|\\d{2}) \\d{2}:\\d{2}:\\d{2} \\d{4})\\) \\[sssd\\] \\[(?<function>\\w+)\\] \\((?<debug_level>0x[0-9a-fA-F]{4})\\): (?<body>.*)$"
            },
            "module": {
                "pattern": "^\\((?<timestamp>\\S{3,8} \\S{3,8} ( \\d|\\d{2}) \\d{2}:\\d{2}:\\d{2} \\d{4})\\) \\[sssd(?<module>\\[.*?\\])\\] \\[(?<function>\\w+)\\] \\((?<debug_level>0x[0-9a-fA-F]{4})\\): (?<body>.*)$"
            }
        },
        "value": {
            "module": {
                "kind": "string"
            },
            "function": {
                "kind": "string"
            },
            "debug_level": {
                "kind": "string"
            },
            "body": {
                "kind": "string"
            }
        },
        "sample": [
            {
                "line": "(Tue Mar 31 06:03:46 2015) [sssd[be[default]]] [sysdb_search_by_name] (0x0400): No such entry"
            },
            {
                "line": "(Tue Mar 31 05:58:38 2015) [sssd] [start_service] (0x0100): Queueing service LDAP for startup"
            }
        ]
    }
}