Skip to main content
Planview Customer Success Center

How do I configure the max days I'd like to keep Hub log files?

Last Updated:   |  Applicable Hub Versions: All

Answer

For logs generated on disk, users can configure the max days they would like to keep log files.

To do this, please see the instructions below. 

tasktop.log

  1. Open log4j2-appenders. 

71566193.png

2. Find an element called 'rollingfile' and the value for attribute name is 'logfile'

71566195.png

3. Modify the ifLastModified element.

71566194.png  

Example: If users would like to keep logs from the last 30 days, they will need to update the ifLastModified element to <ifLastModified age="30d"/>.

metrics.log

  1. Open log4j2-appenders.

71566193.png

2. Find an element called 'rollingfile' and the value for attribute name is 'metrics'

71566196.png

3. Modify the ifLastModified element.

71566197.png

extensions.log

  1. Open log4j2-appenders

71566193.png

2. Find an element called rollingfile and the value for attribute name is "scripts"

71566198.png

3. Modify the ifLastModified element.

71566199.png

configure.catalina

  1. Go to container → configuration.

71566200.png

71566201.png

2. Open logging.

71566202.png

3. Change 1catalina.org.apache.juli.AsyncFileHandler.maxDays = 14 to your desired interval.

71566203.png

localhost

  1. Go to container → configuration.

71566200.png

71566201.png

2. Open logging.

71566202.png

3. Change 2localhost.org.apache.juli.AsyncFileHandler.maxDays = 14 to your desired day range. 

71566204.png

localhost_access_log

  1. Go to container → configuration.

71566200.png

71566201.png

2. Open server.

71566205.png

3. Find the element Valve className= "org.apache.catalina.valves.AccessLogValve"

71566208.png

4. Change maxDays value to your desired value. 

71566207.png