Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Detecting software downloads in Stash

A user would like to be notified whenever someone downloads their code from Stash. I don't see a quick way to do this other than possibly scraping atlassian-stash-access.log. Is there a better way?

Users are required to log in to Stash to perform any actions, so I know we won't have any anonymous downloads

Please ignore whether this is a good idea or not. For now, ignore the difference between typical git operations (e.g. clone) and a download via

1 answer

Hi DI2E,

If you don't mind working with java, the Stash plugin system allows you to implement a servlet-filter module that can be mapped to any URL pattern in Stash. Clone, pull and archive operation URLs have the project key and repository slug in them, which you can use to determine which repository is being downloaded. You can also use the SAL UserManager to determine which user is performing the operation, and then log it to a file / POST it to another webapp / email / hipchat / whatever.

The Stash developer docs have some great material on getting started with the plugin system.



Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you