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
Warning messages
This command can issue warning messages.
Root certificate renewal warning
If the mtls root certificate deployed to the Kubernetes cluster expires in under 30 days the following warning message is displayed:
Dapr root certificate of your Kubernetes cluster expires in <n> days. Expiry date: <date:time> UTC.
Please see docs.dapr.io for certificate renewal instructions to avoid service interruptions.
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 May 31, 2024: Merge 61e65296a85dd35c3b7040b281b7c17caffcc144 into 27b6a61b0e1b0a30ea4e4f31bea712dfec3813b3 (525f2ab)