logs CLI command reference

Detailed information on the logs CLI command

Description

Get Dapr sidecar logs for an application.

Supported platforms

Usage

  1. dapr logs [flags]

Flags

NameEnvironment VariableDefaultDescription
—app-id, -aThe application id for which logs are needed
—help, -hPrint this help message
—kubernetes, -ktrueGet logs from a Kubernetes cluster
—namespace, -ndefaultThe Kubernetes namespace in which your application is deployed
—pod-name, -pThe name of the pod in Kubernetes, in case your application has multiple pods (optional)

Examples

Get logs of sample app from target pod in custom namespace

  1. dapr logs -k --app-id sample --pod-name target --namespace custom

Last modified March 18, 2021: Merge pull request #1321 from dapr/aacrawfi/logos (9a399d5)