Multiline does not pick up all lines
I have the following php error log entry (created by a custom drupal module)
[20-Jun-2018 10:03:08 Europe/Berlin] https://www.example.de|1529481788|3|error|php|169.51.2.22|https://www.example.de/||0||PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {languages} ORDER BY weight ASC, name ASC; Array
(
)
in language_list() (line 3038 of /www/webseiten/example-d7.live/includes/bootstrap.inc).
My configuration file php_errors_example_de.json in config.user.d looks like:
{
"php_errors_example_de": {
"display" : "PHP Errors example.de",
"path" : "\/www\/logs\/php-errors.example.de.log",
"refresh" : 0,
"max" : 50,
"notify" : true,
"multiline": "Error",
"format" : {
"type" : "PHP",
"regex" : "@^\\[(.*)-(.*)-(.*) (.*):(.*):(.*)( (.*))*\\] ((PHP (.*): (.*))|((.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*)\\|(.*))|(.*))$@U",
"export_title" : "Error",
"match" : {
"Date" : [2 , " " , 1 , " " , 4 , ":" , 5 , ":" , 6 , " " , 3],
"Severity" : [17, 11],
"Type" : 18,
"Error" : [12 , 24, 25],
"Time" : { "U" : [15 , "0"] },
"Ip" : 19,
"RequestUri" : 20,
"Referer" : 21,
"Uid" : 22,
"Link" : 23
},
"types" : {
"Date" : "date:d.m.Y H:i:s",
"Time": "date:H:i:s",
"Severity" : "badge:severity",
"Error" : "txt",
"RequestUri" : "link:http/50",
"Referer" : "link:http/50",
"Link" : "link:http/50",
"Ip" : "ip:geo/15"
}
}
}
}
The log shows only the first and second line:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {languages} ORDER BY weight ASC, name ASC; Array
Additional information is missing. Allowing more lines would be especially helpful while logging the backtrack.
Below the log The following information is shown:
300 logs displayed, 50 old logs found in 53ms with 25K of logs, 0 skipped line(s), 122 unreadable line(s).
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by lars on Jun 20, 2018 @ 09:20 PM
It looks like in the attached screenshot
2 Posted by lars on Jun 20, 2018 @ 09:22 PM
Trying again to attach screenshot.