Context:
- docker.elastic.co/beats/filebeat-oss:7.14.0 image
- mac os latest
Filebeat settings:
filebeat.inputs:
- type: filestream
enabled: true
paths:
- /usr/var/log/foo.log
parsers:
- multiline:
type: pattern
pattern: '^[[:space:]]+(at|\.{3})[[:space:]]+|^(Caused|Wrapped) by:'
negate: false
match: after
skip_newline: false
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
output.kafka:
# initial brokers for reading cluster metadata
hosts:
- 'localhost:9092'
Java stacktrace is recognised and brought into one line, but the concatenation drops line breaks and makes the resulting message not easily readable. Switching skip_newline off or being left out doesn't help, although the documentation says it controls the concatenation behavior.