Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolasreich opened this issue Jun 10, 2021 · 0 comments
Labels

Comments

@nicolasreich
Copy link

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):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant