azd app logs

View logs from running services with filtering and follow support.

Usage

Terminal window
azd app logs [flags]

Flags

Flag Short Type Default Description
--follow -f bool false Follow log output (tail -f behavior)
--service -s string - Filter by service name(s) (comma-separated)
--tail -n int 100 Number of lines to show from the end
--since - string - Show logs since duration (e.g., 5m, 1h)
--timestamps - bool true Show timestamps with each log entry
--no-color - bool false Disable colored output
--level - string all Filter by log level (info, warn, error, debug, all)
--format - string text Output format (text, json)
--file - string - Write logs to file instead of stdout
--exclude -e string - Regex patterns to exclude (comma-separated)
--no-builtins - bool false Disable built-in filter patterns

Examples

Terminal window
azd app logs [flags]
Terminal window
azd app logs
Terminal window
azd app logs --follow
Terminal window
azd app logs --service web,api
Terminal window
azd app logs --tail 50
Terminal window
azd app logs --since 5m
Terminal window
azd app logs --level error
Terminal window
azd app logs --format json
Terminal window
azd app logs --file debug.log
Terminal window
azd app logs --timestamps=false

📚 Detailed Documentation

For complete documentation including flows, diagrams, and advanced usage, see the full command specification.

View full logs specification →