1.6.6 shifted the fluentd-gcp image from 2.0.2 to 2.0.5. This seems to have broken the json detection from stdout. Using 2.0.2 the logs are parsed into jsonPayload, however for 2.0.5 they are passed into textPayload.
Reproduction steps:
- Create a GKE cluster with master version 1.6.4
- Deploy a dummy pod to echo some JSON to stdout:
apiVersion: v1
kind: Pod
metadata:
name: blabbermouth
spec:
containers:
- name: busybox
image: gcr.io/google-containers/busybox
command: ['sh', '-c', 'while :; do echo "{\"severity\": \"INFO\", \"message\": \"test\"}"; sleep 5; done']
- Lookup container logs in StackDriver: resource.type="container" and resource.labels.container_name="busybox"
- Observe that jsonPayload field of each logEntry is populated with the app's output JSON
- Upgrade the GKE master to 1.6.6.
- Observe that the log query in 4 now shows each logEntry with the output in a textPayload.
cc: @jlowdermilk @crassirostris @piosz
1.6.6 shifted the fluentd-gcp image from 2.0.2 to 2.0.5. This seems to have broken the json detection from stdout. Using 2.0.2 the logs are parsed into jsonPayload, however for 2.0.5 they are passed into textPayload.
Reproduction steps:
cc: @jlowdermilk @crassirostris @piosz