Seems like msgpack json is not deserialized properly.
...
Steps to replicate
I have used sample fluent config as
fluent-bit.conf: |
[SERVICE]
Flush 5
Log_Level warn
Daemon off
Parsers_File parsers.conf
Streams_File stream_processor.conf
HTTP_Server Off
HTTP_Listen 0.0.0.0
HTTP_Port 2020
@INCLUDE tail-pods.conf
@INCLUDE filter-kubernetes.conf
@INCLUDE output-loki.conf
tail-pods.conf: |
[INPUT]
Name tail
Tag kube.*
Path /var/log/containers/*_app_*.log
Parser docker
DB /var/log/flb_kube_ns.db
Mem_Buf_Limit 5MB
Refresh_Interval 10
Skip_Long_Lines On
Routable Off
filter-kubernetes.conf: |
[FILTER]
Name kubernetes
Match kube.*
Kube_URL https://kubernetes.default.svc:443
Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
Kube_Tag_Prefix kube.var.log.containers.
Merge_Log On
K8S-Logging.Parser On
K8S-Logging.Exclude Off
Annotations Off
output-loki.conf: |
[OUTPUT]
Name loki
Match app.*
Url http://distributor/api/prom/push
BatchWait 10
BatchSize 30
LabelKeys kubernetes
parsers.conf: |
[PARSER]
Name json
Format json
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
[PARSER]
Name docker
Format json
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
stream_processor.conf: |
[STREAM_TASK]
Name app.pypicloud
Exec CREATE STREAM results WITH (tag='app.pypicloud') AS SELECT * FROM TAG:'kube.*' WHERE kubernetes['labels']['app']='pypicloud';
Problem
Seems like msgpack json is not deserialized properly. ...
Steps to replicate
I have used sample fluent config as
While the labels in grafana looks like
Expected Behavior or What you need to ask
Show actual labels.
Using Fluentd and loki plugin versions
EKS 1.13.8 Fluentbit 1.2.2 Latest mater build of the plugin. Loki 0.3.0 Grafana 6.2.5