Is it possible to force logrotate to use UTC time for one configuration? I need the dateext to be set to UTC. I was hoping it was as simple as setting a date varible. Should I just run postrotate and mv the files to a new file name that puts the UTC time on after the fact. I'm just looking for a best practice or the most practical solution. Thanks in advance.
My cute attempt to cheap out with a setting a variable. :)
/var/log/bricks/*.log {
DATE=`date -u +%Y%m%d`
missingok
notifempty
copytruncate
daily
dateext
dateformat .%Y%m%d
compress
}