Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #7997 to 6.x: Add tag "multiline" to "log.flags" if event consists of multiple lines. #8207

Merged
merged 1 commit into from
Sep 11, 2018

Commits on Sep 11, 2018

  1. Add tag "multiline" to "log.flags" if event consists of multiple line…

    …s. (elastic#7997)
    
    Add "multiline" tag to "log.status" if the event contains multiple lines. This way users can filter for multiline messages using "multiline" in [log.status].
    
    Example event
    
    {
      "@timestamp": "2018-08-17T11:35:21.813Z",
      "@metadata": {
        "beat": "filebeat",
        "type": "doc",
        "version": "7.0.0-alpha1"
      },
      "source": "/home/n/test.log",
      "offset": 0,
      "log": {
        "status": [
            "multiline"
         ],
      },
      "message": "[test line\ntest line]",
      "prospector": {
        "type": "log"
      },
      "input": {
        "type": "log"
      },
      "beat": {
        "hostname": "sleipnir",
        "version": "7.0.0-alpha1",
        "name": "sleipnir"
      },
      "host": {
        "name": "sleipnir"
      }
    }
    
    Closes elastic#957
    
    (cherry picked from commit 6da83e8)
    kvch committed Sep 11, 2018
    Configuration menu
    Copy the full SHA
    cb73c73 View commit details
    Browse the repository at this point in the history