The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Laurens Coppens
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 Champions.
July 9, 2021

Hi Ronny,

As @Dave Bosman _Inetum_  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 _Inetum_
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 Champions.
July 9, 2021