Delete Jira Logfiles

Ronny Prüfel 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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