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

JSON Parse Failure on host Field (could not set field 'ip' on object) #90

Closed
andriilahuta opened this issue Nov 9, 2023 · 2 comments
Closed

Comments

@andriilahuta
Copy link
Contributor

Due to the conflict with ECS spec, the messages can't be properly parsed in newer logstash versions.
Here's more info in a similar issue: vklochan/python-logstash#106

@eht16
Copy link
Owner

eht16 commented Dec 20, 2023

Yes, the formatter classes do not support the ECS spec.
There are a few options:

  • disable the ECS validation on Logstash (see the documentation for setting pipeline.ecs_compatibility and adjust your index pattern accordingly
  • override the formatter class to pass the Logstash event as it is expected

I'd happily accept a new formatter class which is compatible with the ECS spec but I won't work on this myself.

@eht16
Copy link
Owner

eht16 commented Dec 20, 2023

This is a duplicate of #39.

See also my comment #39 (comment) about using a mutate filter in Logstash to modify the event.

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

No branches or pull requests

2 participants