The documentation you are viewing is for Dapr v1.4 which is an older version of Dapr. For up-to-date documentation, see the latest version.
logs CLI command reference
Detailed information on the logs CLI command
Description
Get Dapr sidecar logs for an application.
Supported platforms
Usage
dapr logs [flags]
Flags
Name | Environment Variable | Default | Description |
---|---|---|---|
--app-id , -a |
APP_ID |
The application id for which logs are needed | |
--help , -h |
Print this help message | ||
--kubernetes , -k |
true |
Get logs from a Kubernetes cluster | |
--namespace , -n |
default |
The Kubernetes namespace in which your application is deployed | |
--pod-name , -p |
The 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
dapr logs -k --app-id sample --pod-name target --namespace custom
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified
July 12, 2022
: update nav bar for v1.4 (#2641) (2db803e)