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 vote


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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

710 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot