Imagine that we are interested in situations when electricity has gone out and the UPS has switched to battery mode (ID Code = 2000), and electricity returned a while later (ID Code = 1003).
Keep in mind that after utility power is restored, the UPS does not always generate the Utility Power Restored event; sometimes, it generates the UPS Enabling SmartBoost or UPS Enabling SmartTrim events instead. So in order to not "miss" when utility power is restored, you are also advised to configure notifications for the UPS Enabling SmartBoost or UPS Enabling SmartTrim events.
Every time the StateUPS utility is launched, a log file is created in the system folder of the operating system (System32), with a name resembling:
upslog_<state>_<date>_<time>.log