push details from the Bitbucket server

Whenever a push happen to any repository in the bitbucket server, the push details (repository name, project name, project description, commit message(JIRA issue id), user who pushed, date/time) needs to be written in the separate log file in the bitbucket server.

Is there any way to achieve this ?

 

Thanks,

Nisha

1 answer

0 vote

Bitbucket Server 5.4 release notesBitbucket Server 5.4 release notesHi Shamsunisha,

 

Some of these details are available in the Bitbucket Server access log. It's format is documented on the How to read the Bitbucket Server Log Formats page.

This, however, only contains the repository name, project name, user and date/time.

The audit log also contains the details of the RepositoryPushEvent when the audit log priority (audit.highest.priority.to.log) is configured to low.

You could read the details available from this file and create another one based on them.

 

As alternative, you could see if a Webhook (available from Bitbucket Server 5.4) would be a better option for you.

 

Caterina

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

1,773 views 1 5
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