gdcloud logging targets create

NOME

gdcloud logging targets create - Crea una destinazione di logging nello spazio dei nomi specificato.

SYNOPSIS

gdcloud logging targets create LOGGING_TARGET_NAME [flags]

ESEMPI

To create a logging target, run:

    gdcloud logging targets create 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 \
        --log-access-level=pa \
        --service-name=sample_service_name \
        --additional-fields={\"fieldName\": \"field-value\"}

FLAG OBBLIGATORI

      --namespace string      Namespace of the operational logs to collect.
      --service-name string   Service name to apply as a label. For user workloads, this could be also considered as a workload name.

FLAG FACOLTATIVI

      --additional-fields string               Additional static fields to apply to log entries. Field name must not contain '-' character.
      --log-access-level string                Access level for log entries. Available options are: [ao, pa, io]. (default "ao")
      --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].

FLAG A LIVELLO DI GDCLOUD

Questi flag sono disponibili per tutti i comandi: --configuration, --format, --help, --project, --quiet.

Per saperne di più, consulta la pagina Panoramica del riferimento di gcloud CLI.