lnav-formats/asterisk.json

35 lines
955 B
JSON
Raw Normal View History

2015-04-01 03:20:59 +00:00
{
"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"
}
]
}
}