I have Virtual Hosts set up so that each VH has its own set of logs for access and errors. For some reason, these stop logging and returns to the default server logs randomly after logrotate kicks in but not always. Restarting the server resumes regular logging.
The new log files created by logrotate always have the web server as owner with rw access so I can't figure out why.
This is happening in both Apache and Nginx servers.
The options set for the log in the logrotate scripts are:
daily
rotate 7
compress
create 670 www-data admin