How to write the TPXLOG messages to the syslog so that automation can address it.
TPX® Session Management for z/OS
The TPX LOG WRITER exit can be used to populate the SYSLOG based on the choice of messages.
The Log Writer exit is called after a TPX LOG message has been formatted but before it has been written to the LOG DD.
The exit can selectively write the message to the console or tell TPX to discard the message.
By default the exit issues messages to the TPX log.
You can write your own WTO macro to have selected messages go to the console which goes to the SYSLOG.
Then trigger automation based upon these messages.