-
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 6.6.1 invalid CRI format with nginx logs #10957
Comments
i'm also experiecing the same with filebeat 6.6.2 on kubernetes
|
@ElfoLiNk Have you gave combine_partial a try? |
We have fixed something similar to this in the past, did you upgrade from a previous version or is this a clean install? If you were using 6.6.0 or lower before upgrading the registry file could contain wrong offsets, explaining this. |
I've tried to reproduce with no success, using kubernetes 1.14 and filebeat 6.6 / 6.7 Would you mind sharing full config yamls items for filebeat? |
I think I was able to reproduce for a very short while when switching versions, 6.7 to 7.0 and back, but It is being hard to reproduce again. |
Closing this ticket since there have been some improvements in recent releases regarding CRI |
Getting errors of:
2019-02-27T05:00:20.577Z ERROR log/harvester.go:282 Read line error: invalid CRI log format; File: /var/lib/docker/containers/363dbdf50946a40b72b60937ab73a63a1f533998d04338abe89157467ac5a94d/363dbdf50946a40b72b60937ab73a63a1f533998d04338abe89157467ac5a94d-json.log
With nginx logs such as:
{"log":"10.50.131.251 - - [27/Feb/2019:05:00:28 +0000] "GET /status HTTP/1.1" 200 8 "-" "kube-probe/1.12"\n","stream":"stdout","time":"2019-02-27T05:00:28.617850486Z"}
This is with kubernetes auto-discover feature enabled.
filebeat.autodiscover:
providers:
- type: kubernetes
hints.enabled: true
include_annotations: '*'
Should be noted that we have annotations to exclude these lines:
co.elastic.logs/exclude_lines: '/status|Sent\s200\sin\s[0-9]+(?:\P{M}\p{M}*)+s$'
So not sure why filebeat is complaining instead of just ignoring the lines.
The text was updated successfully, but these errors were encountered: