35 lines
955 B
JSON
35 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"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|