Skip to main content

Daita Logs

View deployment history and logs from your deployed Daita agents and workflows. Shows deployment information, timestamps, and component details.

Note: This command requires DAITA_API_KEY to be set in your environment.

Usage

daita logs [options]

Examples

Basic Log Viewing

# View recent deployment history
daita logs

# View last 20 deployment entries
daita logs --lines 20

# Follow logs in real-time
daita logs --follow

# View with verbose details
daita logs --verbose

Monitor Deployments

# Watch for new deployments
daita logs --follow

# View recent deployments with details
daita logs --lines 10 --verbose

# Export deployment history
daita logs --lines 50 > deployments.log

Options

OptionShortDescriptionExample
--lines-nNumber of deployment entries to retrieve--lines 20
--follow-fFollow logs in real-time (like tail -f)--follow
--verboseShow detailed deployment information--verbose

Output Format

Deployment Entry Format

Each deployment shows:

● production: my_project v1.0.0 (current)
2025-01-15 10:30:00
Agents: data_processor, analyzer
Workflows: data_pipeline
ID: abc12345
Status: active

Status Indicators:

  • (filled circle) - Current active deployment
  • (empty circle) - Previous deployment

Verbose Output

With --verbose, you'll see additional details for each deployment:

  • Full list of agents deployed
  • Full list of workflows deployed
  • Deployment ID
  • Deployment status

Filtering and Searching

External Filtering

# Use grep for pattern matching
daita logs --lines 100 | grep "data_processor"

# Export to file for analysis
daita logs --lines 50 > deployment_history.log

Common Use Cases

Monitor New Deployment

# Deploy and watch logs
daita push
daita logs --follow

Check Recent Deployments

# View last 10 deployments with details
daita logs --lines 10 --verbose

# Find specific deployment
daita logs --lines 20 | grep "my_agent"

View Execution History

# For execution logs, use the execution commands
daita executions --limit 20
daita execution-logs <execution-id>

View Execution Logs

For detailed execution logs of individual agent/workflow runs:

# List recent executions
daita executions --limit 10

# View logs for specific execution
daita execution-logs <execution-id>

# Follow execution in real-time
daita execution-logs <execution-id> --follow

Check Deployment Status

# View current deployment status
daita status

# List all deployments
daita deployments list

Troubleshooting

Common Issues

No logs available:

# Check if you have deployments
daita status

# Check API key is set
echo $DAITA_API_KEY

Permission denied:

# Verify API key is set
export DAITA_API_KEY="your-key"

# Test API connection
daita status