How Can We Help?
Tomcat LogrotationTomcat Logrotation
The default setting for Pure is to keep logging to the same file, and only remove it when Tomcat is restarted. As the log files can become quite large if Pure is running for a long time, you might want to add log rotation for them.
Linux
Add a file to /etc/logrotate.d/ with the following
/data/tomcat_base/logs/console.log { su tomcat atira create 0664 tomcat atira copytruncate daily rotate 7 compress missingok size 150M }
This example will rotate the log file daily if the file is at least 150 MB, it will keep that last 7 rotations, and it will compress them.
Windows
Tomcat will automatically start a new log file every day if it is restarted.
Another option is to look at logrotate for Windows: http://logrotatewin.sourceforge.net/
Updated at July 27, 2024