Twice now in 5+ years I've bumped into circumstances where something is failing in some Java code that I have no visibility into, for some event that I have minimal controls over, but I want to be able to have a script run in response to.
In both cases, I can see the event in the Ignition logs, but have no control of the event that triggered it. What I think I need is a gateway event that can be triggered by a log event. The gateway event should be setup to look for messages from a specific logger name and optionally match the log message against a regex or search string. When the event triggers, a script should be run with the log event as a parameter.
I opened a suggestion on the feedback board. If you think this might be useful to you as well, please give it a vote.
If it matters, the two cases I bumped into were:
- Twilio failures when a recipient's phone number is no longer valid or they have replied "STOP" to Twilio and we need to know that they are no longer receiving alarms
- Sparkplug/MQTT Engine failures when someone out in the field has adjusted their tags on the edge to have the same name except for a case-only name change, at which point MQTT Engine just chokes on that tag and it stops working altogether