You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"id":1,"message":"lorem ipsum"}
PLAIN first line
PLAIN second line
{"id":2,"message":"dolor sit amet"}
{"id":3,"message":"consectetur adipiscing elit"}
To reproduce errors
docker run --rm -v $PWD:/data -v $PWD/filebeat.yml:/usr/share/filebeat/filebeat.yml docker.elastic.co/beats/filebeat:8.2.0
When run with -e -d '*' it is visible on debug level, the line is exluded correctly.
Drop line as it does match one of the exclude patterns%sPLAIN first line
Full debug log is in linked Discuss Forum URL
Interresting lines are
{"log.level":"error","@timestamp":"2022-05-31T15:20:47.977Z","log.logger":"parser_json","log.origin":{"file.name":"readjson/json.go","file.line":74},"message":"Error decoding JSON: invalid character 'P' looking for beginning of value","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2022-05-31T15:20:47.977Z","log.logger":"input.filestream","log.origin":{"file.name":"filestream/input.go","file.line":351},"message":"Drop line as it does match one of the exclude patterns%sPLAIN first line","service.name":"filebeat","id":"0","source_file":"filestream::0::native::7639481-54","path":"/data/mixed_json_plain.log","state-id":"native::7639481-54","ecs.version":"1.6.0"}
The text was updated successfully, but these errors were encountered:
The log input behaves the same way, and produces the same error. Maybe in filestream we could make exclude_lines and include_lines parser, so we have more flexibility in filtering out lines.
filebeat log is filled with errors "Error decoding JSON: invalid character"
Steps to Reproduce:
filebeat.yml
log sample file
mixed_json_plain.log
To reproduce errors
When run with -e -d '*' it is visible on debug level, the line is exluded correctly.
Full debug log is in linked Discuss Forum URL
Interresting lines are
The text was updated successfully, but these errors were encountered: