-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Filebeat Log Collection Halting : ERR Fail to convert the event to JSON: reflect: call of reflect.Value.IsNil on zero Value #1410
Comments
@david-rooke can you also provide your filebeat.yml? I know you posted it in discuss, but I want to make sure we have your up-to-date version before we try to reproduce this. Thanks! |
@tsg config attached... |
@david-rooke we have a suspicion that the multiline implementation might be causing this, but in the sample logs you provided there doesn't seem to be any multiline events (lines starting with a white space).
Thanks! |
Ah, nevermind point 2, I see now that it contains an exception, it was just my regexp being broken. Point 1 could still be interesting. |
Well, I've seen this behaviour whether multiline has been enabled or not. |
Thanks, that's useful information. |
I managed to reproduce the issue. It's related to the fact that there are two outputs enabled (console and logstash). It can happen that they try to modify the same event concurrently which results in a panic. Stack trace here: https://gist.github.com/tsg/fbfdac8ea8a0b1f74f17e4a7c4715dee We probably need to do deep copying of the events before passing them to multiple outputs. @david-rooke As a workaround, I'd recommend disabling the console output for the moment. |
True, the logstash output adds meta-data to the event without copying it. potential race on map. |
I am seeing that log collection is halting periodically when sending Datastax Enterprise Cassandra logs to logstash. Issue was originally seen in version 1.1.0 and 1.2.1 with this error:
Installing a 5.0.0 nightly build didn't resolve the problem or provide any additional output. Indeed, the service tends to die silently...
Additional information and background can be found here (https://discuss.elastic.co/t/filebeat-1-1-0-log-collection-halting/47130/15)
sample_logs.tar.gz
The text was updated successfully, but these errors were encountered: