local_access_log file contains the two dots (..) for daily rotation logs
search cancel

local_access_log file contains the two dots (..) for daily rotation logs

book

Article ID: 422477

calendar_today

Updated On:

Products

Network Observability

Issue/Introduction

Local_access_log file contains the two dots (..) for daily rotation logs as per below, because of which logs are not purging older than 30days. So, we have noticed that this issue has been address in the latest version as I don’t see two dots (..) in the local_access_log file.

 

localhost_access_log..2025-09-20.txt

localhost_access_log..2025-09-21.txt

localhost_access_log..2025-09-22.txt

localhost_access_log..2025-09-23.txt

localhost_access_log..2025-09-24.txt

Environment

23.3.x

24.3.x

Cause

extra . in conf file.

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%l %u %t %r %s %b %D" resolveHosts="false"></Valve>

Resolution

To fix the double dot in the log file we need to remove . in prefix

 

From

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%l %u %t %r %s %b %D" resolveHosts="false"></Valve>

 

To 

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%l %u %t %r %s %b %D" resolveHosts="false"></Valve>