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

Don't use multiline options in Logstash module with json format #11346

Merged
merged 1 commit into from
Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Change URLPATH grok pattern to support brackets. {issue}11135[11135] {pull}11252[11252]
- Add support for iis log with different address format. {issue}11255[11255] {pull}11256[11256]
- Add fix to parse syslog message with priority value 0. {issue}11010[11010]
- Don't apply multiline rules in Logstash json logs. {pull}11346[11346]

*Heartbeat*

Expand Down
3 changes: 3 additions & 0 deletions filebeat/module/logstash/log/config/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ paths:
- {{$path}}
{{ end }}
exclude_files: [".gz$"]

{{ if eq .format "plain" }}
multiline:
pattern: ^\[[0-9]{4}-[0-9]{2}-[0-9]{2}
negate: true
match: after
{{ end }}

{{ if .convert_timezone }}
processors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"event.module": "logstash",
"fileset.name": "log",
"input.type": "log",
"log.flags": [
"multiline"
],
"log.level": "INFO",
"log.offset": 0,
"logstash.log.log_event.count": 1,
Expand All @@ -28,5 +25,36 @@
"logstash.log.thread": "Ruby-0-Thread-1: /Users/mat/work/elastic/releases/6.5.1/logstash/lib/bootstrap/environment.rb:6",
"message": "Pipelines running",
"service.type": "logstash"
},
{
"@timestamp": "2019-01-07T21:25:22.538Z",
"ecs.version": "1.0.0",
"event.dataset": "logstash.log",
"event.module": "logstash",
"fileset.name": "log",
"input.type": "log",
"log.level": "INFO",
"log.offset": 357,
"logstash.log.log_event.pipeline_id": "main",
"logstash.log.log_event.thread": "#<Thread:0x7d16ffef run>",
"logstash.log.module": "logstash.pipeline",
"logstash.log.thread": "[main]>worker7",
"message": "Pipeline has terminated",
"service.type": "logstash"
},
{
"@timestamp": "2019-01-07T21:25:22.594Z",
"ecs.version": "1.0.0",
"event.dataset": "logstash.log",
"event.module": "logstash",
"fileset.name": "log",
"input.type": "log",
"log.level": "INFO",
"log.offset": 566,
"logstash.log.log_event.port": 9600,
"logstash.log.module": "logstash.agent",
"logstash.log.thread": "Api Webserver",
"message": "Successfully started Logstash API endpoint",
"service.type": "logstash"
}
]