delete logs -JIRA application logs and catalina.out

I want to delete all application server logs and tomcat logs at  every restart of JIRA

We have JIRA-6.4 installed on LINUX platform.


Can anyone share a script for the same?

2 answers

This widget could not be displayed.

No, you don't.  Those logs can be useful for troubleshooting and monitoring, so you don't want to delete them.

You probably should look into "log rotate", so that you clear out older ones and retain the last 3 to 5.

This widget could not be displayed.


Thank you Nic.

I want to know which all logs can be safely deleted manually?

There are multiple LOG files in location in VAR and OPT folder.

Does anyone know how to do 'log rotate'?


Any that are not currently being written to can be deleted.  But you will regret it when something goes wrong if you delete too many.

Have a look at the logrotate docs for your Linux distribution, they should tell you how to set it up sensibly.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

528 views 23 15
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you