Multiline does not pick up all lines

lars's Avatar

lars

20 Jun, 2018 09:12 PM

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

Screenshot

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).

  1. 1 Posted by lars on 20 Jun, 2018 09:20 PM

    lars's Avatar

    It looks like in the attached screenshot

  2. 2 Posted by lars on 20 Jun, 2018 09:22 PM

    lars's Avatar

    Trying again to attach screenshot.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

29 Nov, 2018 07:29 PM
11 Nov, 2018 07:20 AM
31 Oct, 2018 08:09 AM
28 Oct, 2018 05:43 PM
23 Oct, 2018 02:53 PM