Logs & Diagnostics
Agent Logs
Viewing Logs
# Current logs
kubectl logs -n opsworker -l app=opsworker-agent
# Last 100 lines
kubectl logs -n opsworker -l app=opsworker-agent --tail=100
# Follow logs in real time
kubectl logs -n opsworker -l app=opsworker-agent -f
# Previous container logs (if pod restarted)
kubectl logs -n opsworker -l app=opsworker-agent --previous
Log Levels
| Level | Meaning |
|---|---|
| INFO | Normal operation — connection established, commands executed |
| WARN | Recoverable issues — temporary connectivity loss, retry |
| ERROR | Action needed — authentication failure, persistent connectivity issues |
Common Log Messages
| Message | Meaning |
|---|---|
| "Connected to SQS" | Agent successfully connected to OpsWorker |
| "Polling for commands" | Normal operation — waiting for investigation commands |
| "Executing command" | Agent is gathering data for an investigation |
| "Command completed" | Data collection successful |
| "Connection error" | Cannot reach SQS — check network/proxy |
| "Authentication failed" | Invalid cluster token |
Investigation Logs
In the OpsWorker portal, each investigation has a conversation log showing:
- Which AI agents were invoked
- What data was requested from the cluster
- The AI's reasoning process
- How the root cause was identified
View these in the investigation detail page.
Cloud-Side Logs
OpsWorker's cloud infrastructure logs are managed by the OpsWorker team. For issues that require cloud-side investigation, contact OpsWorker support.
Next Steps
- Troubleshooting — Common issues and fixes
- Agent Connectivity — Network troubleshooting