I have written a script to rotate zabbix logs.
This is rotating logs daily at 04:02 AM. It is not set anywhere in the configuration.
I would like to rotate the logs at 12:00 Midnight. Do I need to change the time stamp of recent log file to 12:00 AM to make it work rotate today midnight.
Which time do i need to change access time, change time, modification time ?
Is there any other way to achieve this ?