How to disable /rest/analytics/1.0/publish/bulk?

We have a lot of strange POSTs to this REST on our Bitbucket instance. Can i to disable System Plugin? Why it do something if all Analytics disabled in Server settings?

It make 20k request per day.

2 answers

1 vote

Hi Alexey,

 

The "disable" button on the analytics plugin settings page only prevents the analytics plugin from uploading data to Atlassian. We cannot guarantee that turning off a system plugin will not cause any failures, and Atlassian does not offer support if it does.

 

Hope this helps,

Kristy

An observation from Atlassian Site Reliability:

(1) Turning off the analytics plugin (from what we see) does not appear to adversely affect this site (answers.atlassian.com) which is based on Confluence.

(2) Disabling the analytics plugin does not turn off the JavaScript in the UI that sends requests to the server.  This is why we blocked the URL end points on the FE servers, since every time Google would reindex the system it would generate n-times more requests than were necessary.

Disclaimer

As Kristy says (above), this is not supported by the product. The information is presented as the latest information from a production system using the same product you are using to run one of our public-facing systems. That said, if you choose to disable/block this end point, make sure you test the results on your system to ensure it doesn't break anything. wink

We recently solve this on one system by using the following in our NGINX front-end server:

location /rest/analytics/1.0/publish/bulk {
        deny all;
        return 200;
}
  location /rest/analytics/1.0/publish/bulk/ {
      deny all;
      return 200;
  }

Updated with more accurate code block. Note: by blocking this at the Front-end reverse proxy (nginx) layer, it takes load off the application.

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

2,008 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