gdcloud logging targets update

이름

gdcloud 로깅 타겟 업데이트 - 지정된 네임스페이스의 로깅 타겟을 업데이트합니다.

개요

gdcloud logging targets update LOGGING_TARGET_NAME [flags]

EXAMPLES

To update a logging target, run:

    gdcloud logging targets update logging-target-name \
        --namespace=sample_namespace  \
        --match-clusters=cluster1,cluster2 \
        --match-pod-name-prefixes=pod-prefix1,pod-prefix2 \
        --match-container-name-prefixes=container-prefix1,container-prefix2 \
        --parser=json \
        --additional-fields={\"fieldName\": \"field-value\"}

필수 플래그

      --namespace string   Namespace of the operational logs to collect.

선택적 플래그

      --additional-fields string               Additional static fields to apply to log entries. Field name must not contain '-' character.
      --match-clusters string                  Comma-separated list of cluster names to consider for the log collection job.
      --match-container-name-prefixes string   Comma-separated list of container name prefixes where logs are collected.
      --match-pod-name-prefixes string         Comma-separated list of pod name prefixes where logs are collected.
      --parser string                          Predefined parser for log entries. Available options are: [klog_text, klog_json, klogr, gdch_json, json].

GDCLOUD 전체 플래그

이러한 플래그는 모든 명령어에서 사용할 수 있습니다. --configuration, --format, --help, --project, --quiet

자세한 내용은 gdcloud CLI 참조 개요 페이지를 참고하세요.