New Admins: Register for our new Pure Lecture Series!
Pure's logos
Pure Help Center for Pure Administrators

If you are a researcher, or other non-admin at your institution, click here.

  • Home
  • Announcements
  • Release Notes
  • Technical user guides
  • Training
  • Events
  • Support
  • Contact Us
  • Home
  • Training
  • Technical user guides
  • Pure installation and upgrade guide (self-hosted customers only)

How Can We Help?

Search Results

Filter By Category

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Contact us

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/

Published at November 09, 2023

Download
Table of Contents
  1. Linux
  2. Windows
Related Articles
  • MODS Dataset field mapping
  • Eprints
  • Split up Pure webapps on more than one Tomcat
  • Setup Pure Test server
Keywords
  • logging
  • tomcat

Was this article helpful?

Yes
No
Give feedback about this article

    About Pure

  • Announcements

    Additional Support

  • Events
  • Client Community
  • Training

    Need Help?

  • Contact Us
  • Submit a Support Case
  • My Cases
  • Linkedin
  • Twitter
  • Facebook
  • Youtube
Elsevier logo Relx logo

Copyright © 2025 Elsevier, except certain content provided by third parties.

  • Terms & Conditions Terms & Conditions
  • Privacy policyPrivacy policy
  • AccesibilityAccesibility
  • Cookie SettingsCookie Settings
  • Log in to Pure Help CenterLog in to Helpjuice Center

Knowledge Base Software powered by Helpjuice

Expand