Prune/Delete atlassian-jira.log

I added debugging today to examine email related issues, and my atlassian-jira.log grew to 33 GB (usually much much smaller) in size.  I have turned off the debugging, and the log has frozen in size, but I now I need to rather prune it dramatically, or delete it (allowing it to recreate).  How do I go about doing either of these things?  I tried to moved it to our storage drive, but as expected, it cannot move while in use.  I did not see any pruning options in the UI

Jira version 7.3.6

1 answer

0 vote

If you were on a Unix/Linux system, then you should just be able to move/delete this log file.  If you are using Windows, then it is possible that the JIRA/JAVA process running has a lock on the log file preventing you from moving it while JIRA is running.

To get around this you could try either of these steps:

  1. Stop JIRA - from there you can then move/delete this file.  When you restart JIRA it will automatically create a new log
  2. You could try to go in to JIRA, Cog Icon -> System -> Logging and Profiling, and then select the "Log Rollover" checkbox and then click the "Mark" button below.  This will cause the log file to separate into a new file.

If you stop JIRA and still can't move this, then something else on the system has the lock on the file (most commonly a program like antivirus that would be trying to scan the file contents).

ironically the mark option split all the files save the one I needed.  I will stop the service off hourse I guess.  thank you

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

11,877 views 14 13
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