log_name_key: The value of this field is used by the Stackdriver output plugin to extract logName from jsonPayload and set the logName field.
I’m trying to set the log_name_key field to extract container/application name. But I can’t figure out which jsonPayload the doc is referring to. What should log_name_key be in order for the stackdriver logname to be the apps name?
Thinking of something like: logging.googleapis.com/labels/k8s-pod/app
As shown in the documentation: Logs log names include resource identifiers indicating the Cloud project or other Google Cloud entity that owns the audit logs, and whether the log contains Admin Activity, Data Access, Policy Denied, or System Event audit logging data.
See this document about viewing your GKE logs, to find out your logName.
Maybe I was being unclear but it’s the same question. I’m wondering what should the log_name_key be in the fluent-bit output plugin in order to modify the logName field in stackdriver.