lnav-formats/asterisk.json
2015-03-31 23:20:59 -04:00

34 lines
955 B
JSON

{
"asterisk": {
"title": "Asterisk Logs",
"description": "Asterisk log format",
"regex": {
"full": {
"pattern": "^\\[(?<timestamp>\\w{3} \\d+ \\d{2}:\\d{2}:\\d{2})\\] (?<level>\\w+)\\[(?<pid>\\d+)\\] (?<file>\\w+\\.c): +(?<body>.*)$"
}
},
"level-field": "level",
"level": {
"trace": "VERBOSE",
"debug": "DEBUG",
"info": "NOTICE",
"warning": "WARNING",
"error": "ERROR"
},
"value": {
"pid": {
"kind": "integer",
"identifier": true
},
"file": {
"kind": "string",
"identifier": true
}
},
"sample": [
{
"line": "[Mar 31 11:45:01] ERROR[17594] utils.c: fwrite() returned error: Connection reset by peer"
}
]
}
}