Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Jira Logfiles

Ronny Prüfel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2021

Hello,

we want to regular run a job which deletes the complete content from C:\Program Files\Atlassian\JIRA\logs. 

The plan is to first stop the service, delete all the files in the logs folder and then to start the service again.

So my question is, can we delete all of the content from JIRA\logs without doing any harm?

Thanks so much!

Ronny

2 answers

0 votes
Laurens Coppens
Community Champion
July 9, 2021

Hi Ronny,

As @Dave Bosman [Realdolmen]  mentioned, you can check the answer of Nic in the above link.

If you don't want to stop the services, i would suggest to just cleanup the logfiles that contain a date stamp, those can be removed without impact.

The one without a timestamp can't be removed while the services are running.

Just creating a shell script that removes all files older than X days should also do the trick.

 

Hope this helps,

Laurens

0 votes
Dave Bosman [Realdolmen]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2021

Suggest an answer

Log in or Sign up to answer