Open beerendlauwers opened 6 years ago
Hi !
Indeed, it works but your configuration file should be something like this :
"drupalaccess": {
"display": "Drupal Access Log",
"path": "\/var\/php\/logs\/drupal-requests.log",
"refresh": 20,
"max": 20,
"notify": false,
"format": {
"regex" : "|^\\[(.*)/(.*)/(.*):(.*):(.*):(.*) \\+(.*)\\] (.*) (.*) (\\/(.*))|",
"match": {
"Date": [
1,
" ",
2,
" ",
3
],
"Time": [
4,
":",
5,
":",
6
],
"Timezone": 7,
"Source": 8,
"Type": 9,
"Request": 10
},
"types": {
"Date": "date:d M Y",
"Time": "date:H:i:s",
"Timezone": "txt",
"Source": "txt",
"Type": "txt",
"Request": "txt"
}
}
}
Double pipe in the regex is not correct. Does it work ?
Hi, I'm trying to parse some Drupal access logs, which look like this:
Here's the parser:
In the debugger, everything seems to work:
But when I loaded it into the JSON file and restarted the webserver, the log viewer doesn't seem to do anything. It's just stuck like this:
Are there any more extensive debugging methods available?