Skip to main content

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

LevelMeaning
INFONormal operation — connection established, commands executed
WARNRecoverable issues — temporary connectivity loss, retry
ERRORAction needed — authentication failure, persistent connectivity issues

Common Log Messages

MessageMeaning
"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