Skip to content

Commit 507a0bb

Browse files
authored
Update stackdriver.md on clarifying the use of log_name_key and labels_key (#637)
* Update stackdriver.md Signed-off-by: Sophie Fang <sophieyfang@google.com> * Update stackdriver.md Signed-off-by: Sophie Fang <sophieyfang@google.com> * Update stackdriver.md Signed-off-by: Sophie Fang <sophieyfang@google.com>
1 parent 51c90bb commit 507a0bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pipeline/outputs/stackdriver.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Before to get started with the plugin configuration, make sure to obtain the pro
2525
| resource | Set resource type of data. Supported resource types: _k8s_container_, _k8s_node_, _k8s_pod_, _global_, _generic_node_, _generic_task_, and _gce_instance_. | global, gce_instance |
2626
| k8s_cluster_name | The name of the cluster that the container (node or pod based on the resource type) is running in. If the resource type is one of the _k8s_container_, _k8s_node_ or _k8s_pod_, then this field is required. | |
2727
| k8s_cluster_location | The physical location of the cluster that contains (node or pod based on the resource type) the container. If the resource type is one of the _k8s_container_, _k8s_node_ or _k8s_pod_, then this field is required. | |
28-
| labels_key | The value of this field is used by the Stackdriver output plugin to find the related labels from jsonPayload and then extract the value of it to set the LogEntry Labels. | logging.googleapis.com/labels |
28+
| labels_key | The value of this field is used by the Stackdriver output plugin to find the related labels from jsonPayload and then extract the value of it to set the [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) `labels` field. | logging.googleapis.com/labels |
29+
| log_name_key | The value of this field is used by the Stackdriver output plugin to find the related logName from jsonPayload and then extract the value of it to set the [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) `logName` field. | logging.googleapis.com/logName |
2930
| tag_prefix | Set the tag_prefix used to validate the tag of logs with k8s resource type. Without this option, the tag of the log must be in format of k8s_container(pod/node).\* in order to use the k8s_container resource type. Now the tag prefix is configurable by this option (note the ending dot). | k8s_container., k8s_pod., k8s_node. |
3031
| severity_key | Specify the name of the key from the original record that contains the severity information. | |
3132
| tag_prefix | Set the tag_prefix used to validate the tag of logs with k8s resource type. Without this option, the tag of the log must be in format of k8s_container(pod/node).\* in order to use the k8s_container resource type. Now the tag prefix is configurable by this option. | k8s_container., k8s_pod., k8s_node. |

0 commit comments

Comments
 (0)