How to configure the Statistics Services logs to roll over daily, instead of by size.

How to configure the Statistics Services logs to roll over daily, instead of by size.

book

Article ID: KB0080164

calendar_today

Updated On:

Products Versions
Spotfire Statistics Services -

Description

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.

 

Issue/Introduction

How to configure the Statistics Services logs to roll over daily, instead of by size.

Environment

Product: TIBCO Spotfire Statistics Services Version: All supported versions OS: All supported Operating Systems

Resolution

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

Attachments

How to configure the Statistics Services logs to roll over daily, instead of by size. get_app