Hi folks. I am using Filebeat to log a bunch of JSON-formatted log-files into ES, and occasionally I get records with a json error such as
Error decoding JSON: invalid character ',' in numeric literal
Can I add the original message field to each document in some way, so I can see what the raw json line was that caused this error? I suspect it's just something not formatted correctly in my log file, but I can't just search for ,
-
type: log
document_type: varnish
close_inactive: 1m
ignore_older: 15m
paths:
- /var/log/varnish/varnishncsa.log
json.keys_under_root: true
json.add_error_key: true
json.overwrite_keys: true