GKE Stackdriver logName is [container_name] instead of stdout

Viewed 378

According to documentation: https://cloud.google.com/stackdriver/docs/solutions/gke/migration

The logName field might change. Cloud Operations for GKE log entries use stdout or stderr in their log names whereas Legacy Logging and Monitoring used a wider variety of names, including the container name. The container name is still available as a resource label.

I have GKE version 1.17.9-gke.1504 Cloud Operations for GKE is enabled. Legacy Logging is disabled and I have in logs:

labels: {
  ...
  container_name: "controller"
  project_id: "aaa"
 }
}
...
logName: "projects/aaa/logs/controller"

The question is why not logName: "projects/aaa/logs/stdout"? Is there any configuration parameter responsible for that? I would like to have stdout as a log_id and not controller cause other parts of the system depends on that.

0 Answers
Related