I am generating tomcat localhost access logs using the class -
<Valve className="org.apache.catalina.valves.AccessLogValve" fileDateFormat="yyyy-MM-dd.HH:mm" renameOnRotate="true" prefix="localhost_access_log" suffix=".txt" maxDays="<%= @access_log_max_days %>"
Since my node doesn't have sufficient memory for all access logs, I would like to delete the rotated files after 10 min or so. My question is how can we provide a decimal value (or < 1days) value for maxDays
construct so that deletion of rotated files occurs more rapidly than once everyday?
Any help will be much appreciated. Thanks in advance!