简体   繁体   中英

GCP Kubernetes all logs apears as error logs

I have a Kubernetes cluster. All the container logs in the stack driver appear as severity:error.

The browser hass all the requests with status 200.

在此处输入图像描述

Is this normal? Thanks

When you create a GKE cluster it'll come preconfigured with pushing logs to Stackdriver. And as soon as you start your application on top of GKE, logs going to stdout or stderr from your containers and will be pushed to Stackdriver Logs by Fluentd.

Severity, that you can see in Stackdriver -> Logging -> Logs viewer , depends on where event was collected. So, if your application send event to stderr you'll found it with severity ERROR at Stackdriver.

Try to check where your application send events.

EDIT You can customize Stackdriver logs with Fluentd - follow this documentation .

is a GCP bug, here you can follow it: https://issuetracker.google.com/issues/124403972?pli=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM