Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Wrong JSON output escaping #68

Open
kvolkovich-sc opened this issue Jan 11, 2019 · 1 comment
Open

Wrong JSON output escaping #68

kvolkovich-sc opened this issue Jan 11, 2019 · 1 comment

Comments

@kvolkovich-sc
Copy link

kvolkovich-sc commented Jan 11, 2019

I noticed that fluent-bit's json parser can't parse some of eventrouter's log messages.

Eventrouter config

{
  "sink": "stdout"
}

Eventrouter stdout sample

{"verb":"UPDATED","event":{"metadata":{"name":"fluent-bit-txzvr.1577e0b2a83a3735","namespace":"lunar-system","selfLink":"/api/v1/namespaces/lunar-system/events/fluent-bit-txzvr.1577e0b2a83a3735","uid":"fe6eb861-157c-11e9-a342-5aae0cc8125e","resourceVersion":"23100854","creationTimestamp":"2019-01-11T08:43:40Z"},"involvedObject":{"kind":"Pod","namespace":"lunar-system","name":"fluent-bit-txzvr","uid":"7fc47232-1344-11e9-b82e-663e4d499873","apiVersion":"v1","resourceVersion":"22351098","fieldPath":"spec.containers{fluent-bit}"},"reason":"Pulling","message":"pulling image "fluent/fluent-bit:1.0.1"","source":{"component":"kubelet","host":"aks-nodepool1-30459648-3"},"firstTimestamp":"2019-01-08T12:54:14Z","lastTimestamp":"2019-01-11T08:43:40Z","count":6,"type":"Normal"},"old_event":{"metadata":{"name":"fluent-bit-txzvr.1577e0b2a83a3735","namespace":"lunar-system","selfLink":"/api/v1/namespaces/lunar-system/events/fluent-bit-txzvr.1577e0b2a83a3735","uid":"fe6eb861-157c-11e9-a342-5aae0cc8125e","resourceVersion":"23100854","creationTimestamp":"2019-01-11T08:43:40Z"},"involvedObject":{"kind":"Pod","namespace":"lunar-system","name":"fluent-bit-txzvr","uid":"7fc47232-1344-11e9-b82e-663e4d499873","apiVersion":"v1","resourceVersion":"22351098","fieldPath":"spec.containers{fluent-bit}"},"reason":"Pulling","message":"pulling image "fluent/fluent-bit:1.0.1"","source":{"component":"kubelet","host":"aks-nodepool1-30459648-3"},"firstTimestamp":"2019-01-08T12:54:14Z","lastTimestamp":"2019-01-11T08:43:40Z","count":6,"type":"Normal"}}

If I try to parse it, I got this

screen shot 2019-01-11 at 12 47 31 pm

@e11it
Copy link

e11it commented Sep 3, 2019

glogsink has the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants