Is it possible to increase the verbosity of atlassian-stash-access.log

We are finding some of the entries ambiguos as to what kind of operations are actually taking place based on atlassian-stash-access.log entries

access-log format:

ip address | protocol | request id | username | date/time | action | request details | labels | response time (ms) | session-id

## a "real" clone attempt: git clone ssh://git@stash.local:7999/ap/apple-core.git apple-core | ssh | o659x12230x3 | jdoe | 2013-10-03 10:59:58,498 | SSH - git-upload-pack '/ap/apple-core.git' | - | clone | 25963 | 1pkur6z |

## git fetch --all | ssh | o667x12286x2 | jdoe | 2013-10-03 11:07:06,190 | SSH - git-upload-pack '/ap/apple-core.git' | - | clone | 159 | nhtauz |

## why is THIS one labeled 'fetch'? | ssh | o662x12273x1 | deployuser | 2013-10-03 11:02:59,934 | SSH - git-upload-pack '/svr/core.git' | - | fetch | 23817 | 1surbyu |

2 answers

This widget could not be displayed.

Yes. All Atlassian products are based off Log4J. In the app, go to "Admin" -> Support -> Logging and Profiling. Those are the dynamic things that you can flip on/off. Beyond that, other things would need to be done with the log4j stuff and would require a restart.

If you go in to $APP_HOME/atlassian-stash/WEB-INF/classes and look for "logback.xml." At the bottom you can set your log levels. Restart and check. Of course test it in test first to make sure you feel comfortable with it.

Just a few notes for people reading this answer.

Firstly Stash actually uses Logback, which is the successor of Log4j.

Secondly I would highly recommend you don't modify the logback.xml file you mentioned. Not because it's dangerous, but because on every upgrade you'll have to reapply your changes to that file. Instead if you just want to change the levels we recommend you modify the file.

If you need more control you can also add different appenders in a logback include file:



This widget could not be displayed.

Hi Zachary,

I believe you're seeing a minor glitch in how we handled the classification of fetches (just for SSH). This should be fixed in Stash 2.8 which was released just this week.



Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

213 views 14 2
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