You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We are noticing that our crowd (tomcat) access logs are getting converted into 1 KB files everyday as they rotate. Only the current day log retains all the data.
once it rotates (i.e. gets the date appended to it), it looses all its contents except first 4-5 lines
Below is the snippet of AccessLogValve from the server.xml,
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="crowd_access_log." suffix=".log" pattern="%a %t %I " %m %U%q %H " %s %b %D " %a " %D %F" resolveHosts="false" />
Any suggestions will be really appreciated.
If all configs are same between prod and non prod, then one of reason you don't see the issue in non prod is may be there is no enough load in non prod to write into access Logs. Just a thought may be you already aware of it.
Have you checked crontab for any custom log rotation scripts that may be setup and causing this issue.
It is a single server, not in cluster. From other instances I meant that non prod environments.
The issue is only in production environment, that is why we are not playing around with it to see what is going wrong, all the configs look exactly the same to non-prods and the non-prods work fine.
Appreciate your help on this.