elastic / elastic/logstash

clean up and use consistent strategy for json parsing error handling in plugins

Open
#4,857 0 comments 0 reactions 0 assignees View on GitHub
code cleanup enhancement
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

JSON parsing error handling is inconsistent in plugins (json and json_lines codecs, json fllter, gelf input, others?) in particular some log error, log warn or don't log at all.

I suggest that upon a json parser error, an **error** level log should be generated and the event should be tagged with `_jsonparsefailure`.

related to dicussion in GELF input PR #27

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.