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
bash
daita logs [options]#Examples
#Basic Log Viewing
bash
# 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
bash
# 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
| Option | Short | Description | Example |
|---|---|---|---|
--lines | -n | Number of deployment entries to retrieve | --lines 20 |
--follow | -f | Follow logs in real-time (like tail -f) | --follow |
--verbose | Show detailed deployment information | --verbose |
#Output Format
#Deployment Entry Format
Each deployment shows:
bash
● production: my_project v1.0.0 (current)
2025-01-15 10:30:00
Agents: data_processor, analyzer
Workflows: data_pipeline
ID: abc12345
Status: activeStatus 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
bash
# 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
bash
# Deploy and watch logs
daita push
daita logs --follow#Check Recent Deployments
bash
# View last 10 deployments with details
daita logs --lines 10 --verbose
# Find specific deployment
daita logs --lines 20 | grep "my_agent"#View Execution History
bash
# For execution logs, use the execution commands
daita executions --limit 20
daita execution-logs <execution-id>#Related Commands
#View Execution Logs
For detailed execution logs of individual agent/workflow runs:
bash
# 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
bash
# View current deployment status
daita status
# List all deployments
daita deployments list#Troubleshooting
#Common Issues
No logs available:
bash
# Check if you have deployments
daita status
# Check API key is set
echo $DAITA_API_KEYPermission denied:
bash
# Verify API key is set
export DAITA_API_KEY="your-key"
# Test API connection
daita status#Related Documentation
- CLI Status Command - Check deployment status
- CLI Push Command - Deploy agents and workflows
- Configuration Guide - Project configuration