komljen / helm-charts

Helm charts - Apps for Kubernetes
154 stars 102 forks source link

fluent-bit logs errors #22

Open 1robroos opened 5 years ago

1robroos commented 5 years ago

The fluent-bit pod ( on minikube ) shows a lot of errors:

{"took":25,"errors":true,"items":[{"index":{"_index":"kubernetes_cluster-2019.05.16","_type":"flb_type","_id":"5Mf2wWoBjkwQFkQkrbET","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"i_o_exception","reason":"Duplicate field '@timestamp'\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@5394d44b; line: 1, column: 816]"}}}},{"index":{"_index":"kubernetes_cluster-2019.05.16","_type":"flb_type","_id":"5cf2wWoBjkwQFkQkrbET","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"i_o_exception","reason":"Duplicate field '@timestamp'\n at [Source: org.elasticsearch.common.bytes.BytesReference$MarkSupportingStreamInputWrapper@6c337d70; line: 1, column: 288]"}}}},{"index":{"_index":"kubernetes_cluster-2019.05.16","_type":"flb_type","_id":"5sf2wWoBjkwQFkQkrbET","status":400,"error":{"type":"mapper_parsing_ex

https://github.com/fluent/fluent-bit/issues/628 references this also.

Not sure what version you use, is it 1.0.4? :

$ kc describe pod/fluent-bit-44gtk -n logging| grep Image
    Image:          fluent/fluent-bit:1.0.4

In your chart I see version 1.3.0 ( confusing for me , sorry )

What is the correct way to solve this ?

komljen commented 5 years ago

The version is 1.0.4. 1.3.0 is the helm chart version. The latest fluent-bit is 1.1.1, so you can try that one. I updated it https://github.com/komljen/helm-charts/commit/faf9efae1ad8512e8e381c0729dabb6bf26f4d70.

1robroos commented 5 years ago

Thanks, I just tried, unfortunately the same error remains. This is on minikube. I will deploy a test EKS cluster for testing helm,tiller and your charts.