Pcornel
Automation · Event-Driven Automation

Event Automation Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5346

Back to the Topic

Answer

Troubleshoot event-driven automation by checking that the source emits events, the rule or filter matches them, consumers are running, queue depth and dead-letter contents, and action logs.

Remember

  • Check source, rule, consumer, action in order.
  • Duplicates and ordering issues are common.
  • DLQ shows failures.

First checks

  • Trace an event ID across systems — end-to-end
  • Consumer logs and lag — processing
  • DLQ contents — failures

Commands

journalctl --since "-30 min" | grep -Ei "event|trigger|handler|automation|error|fail"
Read-only/validation observation for time-bounded event, trigger, handler and automation error records around the faile…

Verify in this order

source → bus → filter → rule → action

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5346

Confirmation

Confirm action

Continue?