How to increase search.max_buckets cluster level setting

Hi,

I have create a Graph which displays average count from Elasticsearch.

Graph works fine till hrs duration till 1sec internal.

When i increase the duration to 3 hrs i’m getting error as too many buckets.

Can someone please me to guide how can i increase the search.max_buckets cluster level setting?

image