-
Notifications
You must be signed in to change notification settings - Fork 306
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
Unexpected error when @timestamp field missing #739
Comments
The
|
Has there been any fix for this? Just ran into this FATAL error in 6.2.3 Had to create the following workaround in hope that this stops it from crashing logstash in future.
|
Note that if the index doesn't require a timestamp to resolve, events are let through. Closes logstash-plugins#739.
Fix for this incoming: #777. |
@gmoskovicz In case you're interested, discussions on my fix for this issue took a turn. Discussion will be happening here #779 :-) Perhaps you can chime in with what you think our customers would prefer? |
@KevSex did that actually stop it from crashing for you? I tried adding that in /etc/logstash/conf.d/ files but didnt seem to change anything, logstash keeps flapping for me. EDIT: Ignore me, we had a bad mutate that was removing the timestamp field later, womp. |
Still a problem in Logstash 6.4. I believe the problem for us came from using the documented Nginx snippet at https://www.elastic.co/guide/en/logstash/current/logstash-config-for-filebeat-modules.html#parsing-nginx For the nginx access log, the 'read_timestamp' is an added field |
@vacri - the fault is in the example they give, you have correctly pointed out the problem which is caused by the reference to the timestamp in the output:
So to fix it replace this:
with:
ES needs to update their example, ideally. :-) |
Version: Logstash 5.x and Logstash 6.x
Operating System: Any
Config File (if you have sensitive info, please remove it):
Any data
Run logstash with that configuration.
Output:
5.x
6.x
Should this be a better error rather than FATAL? Given that this could happen just with a specific document (if you have conditionals), best is to fail that event rather than a
FATAL
error?The text was updated successfully, but these errors were encountered: