gdcloud logging targets update

שם

gdcloud logging targets update - Update a logging target in the given namespace.

SYNOPSIS

gdcloud logging targets update LOGGING_TARGET_NAME [flags]

דוגמאות

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 WIDE FLAGS

הדגלים האלה זמינים לכל הפקודות: --configuration, ‏ --format, ‏ --help, ‏ --project, ‏ --quiet.

מידע נוסף זמין בדף סקירה כללית של מדריך העזר ל-CLI של gcloud.