To workaround this issue, allow the logs to rotate normally instead of forcing the rotation via the AWI.
The issue was found and fixed with:
Automation.Engine 12.1.5 in Agent JMX, Agent PeopleSoft, Agent RA Core, Agent SAP, Agent SQL - Available
Automation.Engine 12.2.3 in Agent JMX, Agent PeopleSoft, Agent RA Core, Agent SAP, Agent SQL - Available
Hotfix-Description: Initiate Log Rotation creates an empty log file
A problem has been fixed where the log file of the Java-based Agents was empty right after manually changing log (Initiate Log Rotation).