logstash-plugins/logstash-filter-json

The JSON filter can extract empty field names, which are then unusable by Logstash

nicolasreich opened this issue · 0 comments

Logstash information:

Please include the following information:

  1. Logstash version 7.13
  2. 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:

  1. An empty string is a valid JSON key, as explained for example in this stackoverflow answer
  2. 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):