We need to have audit logs for source code, tickets and our documents. And are considering to use the JIRA suite to help (current system doesn't cut it).

I have some questions I hope you will answer

  • Are read accesses logged in Stash?
    • If the user browses the code through the UI (it's my understanding this can be done directly in Stash and also via JIRA)?
    • Git pulls are logged as per the documentation as far as I can see.



3 answers

Not really an answer - but I don't see the need for logging read accesses (beside statistical issues). If you want your repository to be read only by certain people you should use access control to restrict the access - as reading is a non-modifying action on the repository, everybody who has granted access to your repo should be allowed to read it (no need for logging here).


To clearify: We need this because we want a Common Criteria Certificate -perhaps not so widely known, but it's important for security related products. From CC it's mandated (on our level anyway) that all accesses are logged.



0 votes


For Stash, the audit logs (under STASH_HOME/logs/audit) track selected events only. Have a look at https://confluence.atlassian.com/display/STASH/Audit+events+in+Stashfor a list of events that can be tracked. Note that by default not even all these events are included in the audit log; only the 'high' priority events are logged, but you can configure that in the stash-config.properties. Have a look at https://confluence.atlassian.com/display/STASH/Stash+config+properties#Stashconfigproperties-Auditfor more information on how to do that.

While the access logs don't track repository read access, you could still use the access logs for that. They record every request that's made over HTTP and SSH, complete with the authenticated user. See https://confluence.atlassian.com/display/STASHKB/Stash+Log+Formatsfor a description of the access log format.

Hope this helps!



Indeed it does. Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

1,923 views 7 10
Read article

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