The JSON filter can extract empty field names, which are then unusable by Logstash
nicolasreich opened this issue · 0 comments
nicolasreich commented
Logstash information:
Please include the following information:
- Logstash version 7.13
- Logstash installation source Official docker
JVM (e.g. java -version
):
Bundled
OS version (uname -a
if on a Unix-like system):
Ubuntu 18
Description of the problem including expected versus actual behavior:
The problem comes from two facts:
- An empty string is a valid JSON key, as explained for example in this stackoverflow answer
- It isn't possible to access fields with empty names in Logstash.
Steps to reproduce:
Try to handle any JSON with an empty string as a key.
Provide logs (if relevant):