Clarity

 View Only
  • 1.  Delete App-access logs which are a month old

    Posted Apr 04, 2016 01:06 AM

    Hello,

     

    Can we do any configuration in tomcat to delete the "App-access" logs which are older than 30 days, or do we have to achieve this by writing a script and schedule it in the server?

     

    Thanks

    Bhavani Sankar



  • 2.  Re: Delete App-access logs which are a month old

    Broadcom Employee
    Posted Apr 04, 2016 01:55 AM

    Hi Bhavani,

     

    App access logs are saved with the date example app-access-2016-04-01, do you can write a script to read the current date - 30 and delete the files.


    Regards
    Suman Pramanik



  • 3.  Re: Delete App-access logs which are a month old

    Posted Apr 12, 2016 01:28 AM

    Thanks Suman,

     

    Thought we can achieve by changing the tomcat log configuration or through CSA settings similar to other logs (app-ca.logs).

    Will try the script to achieve this. Thanks for your time.



  • 4.  Re: Delete App-access logs which are a month old

    Posted Apr 12, 2016 12:22 PM

    in the past I have scripted the removal of the logs that were older than one month from the current date. It was the easiest method.



  • 5.  Re: Delete App-access logs which are a month old
    Best Answer

    Posted Apr 22, 2016 02:44 AM

    Thank you all.

     

    We were able to achieve this by creating a .bat script and scheduling  it via Windows task scheduler.

     

    Thanks

    Bhavani Sankar



  • 6.  Re: Delete App-access logs which are a month old

    Posted Apr 25, 2016 03:22 PM

    If you are in a windows environment.  Just had to say that!