How to change the location of atlassian-bitbucket.log?

Hi 

In a case of Bitbucket, how can I change the location of atlassian-bitbucket.log?

AFAIK its defined under 

atlassian-bitbucket/WEB-INF/classes/logback.xml: <file>${log.dir}/atlassian-bitbucket.log</file>

But where is this log.dir variable defined?

I can go and made changes in all this location but it's better if we have once centralize place

<define name="log.dir" class="com.atlassian.stash.internal.logback.LogDirectoryPropertyDefiner"
<file>${log.dir}/atlassian-bitbucket.log</file>
<fileNamePattern>${log.dir}/atlassian-bitbucket-%d.log</fileNamePattern>
<file>${log.dir}/atlassian-bitbucket-profiler.log</file>
<fileNamePattern>${log.dir}/atlassian-bitbucket-profiler-%d.%i.log</fileNamePattern>
<file>${log.dir}/atlassian-bitbucket-access.log</file>
<fileNamePattern>${log.dir}/atlassian-bitbucket-access-%d.%i.log</fileNamePattern>
<file>${log.dir}/audit/atlassian-bitbucket-audit.log</file>
<fileNamePattern>${log.dir}/audit/atlassian-bitbucket-audit-%d.%i.log.gz</fileNamePattern>
<file>${log.dir}/atlassian-bitbucket-mail.log</file>
<fileNamePattern>${log.dir}/atlassian-bitbucket-mail-%d.%i.log</fileNamePattern>
<!-- If the log.dir property is not defined, it means there is no Bitbucket home directory. We still want to

 

1 answer

Any pointer to this..My only requirement is all meta-data should be part of /var/atlassian/application-data/Bitbucket but log should be the part of standard Linux location /var/log

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,928 views 26 12
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