Skip to content

Commit

Permalink
Exclude JSON logs from multiline matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed May 13, 2020
1 parent 7b33c05 commit db8f990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions filebeat/module/logstash/log/config/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ paths:
{{ end }}
exclude_files: [".gz$"]

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

processors:
# Locale for time zone is only needed in non-json logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"message": "Encountered a retryable error. Will Retry with exponential backoff...",
"service.type": "logstash"
}
]
]

0 comments on commit db8f990

Please sign in to comment.