How to purge the Spectrum OneClick client and tomcat logs
search cancel

How to purge the Spectrum OneClick client and tomcat logs

book

Article ID: 97583

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to purge the Spectrum OneClick client and tomcat logs
 

Environment

Release: All Supported Releases
Component: SPCOCK - Spectrum OneClick

Resolution

To purge the Spectrum OneClick Client log:
 
1. Log into the OneClick web pages as an ADMIN user
 
2. Click on the Client Log link
 
3. From here you can do the following
    a. Clear the log entirely by pressing the Clear Log button
    b. Purge entries older than "X" days
    c. Set a limit on the number of entries in the log
 
 
 
The Spectrum OneClick tomcat log is located in the $SPECROOT/tomcat/logs directory. For Windows, the filename is stdout.log. For Linux, the file name is catalina.out.
 
When the Spectrum OneClick tomcat process is started, a new log file is created and the old log file is renamed to catalina.<date>.out (Linux) or stdout.<date>.log (Windows). If the tomcat process is restarted again in the same day, the contents of the current log file is added to the catalina.<date>.out (Linux> or stdout.<date>.log (Windows) file that has the same date.
 
For example, the current date is March 30, 2020. I am running Spectrum OneClick on Linux. I shutdown tomcat gracefully and start a new tomcat process. The current catalina.out file is copied to catalina.2020-03-30.out and a new catalina.out file is created.
 
If I shutdown tomcat gracefully and start a new tomcat process on March 30, 2020, the current contents of the catalina.out file is written to the existing catalina.2020-03-30.out file and a new catalina.out file is created.
 
To purge the Spectrum OneClick tomcat log:
 
1. Log into the OneClick web pages as an ADMIN user
 
2. Click on the Administration link
 
3. Click on the Web Server Logs Configuration link
 
4. From here, you can set a value to purge log files older than "X" number of days.