Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
How to configure the Statistics Services logs to roll over daily, instead of by size.
Solution:
If the logs are rolling over too quickly, and a larger backlog of files is needed, the logging can be changed to roll the logs over at the end of each day instead of by size of the file.
Change the SPSERVER/conf/log4j.properties file to use the attached file, which uses the DailyRollingFileAppender.
However, this will keep all logs, which may be a problem. To resolve this, you can set up a cron job to delete the files after a set amount of time. The following post has an example of how to do so:
http://stackoverflow.com/questions/3683364/how-to-configure-log4j-to-only-keep-log-files-for-the-last-seven-days
Comments
0 comments
Article is closed for comments.