while creating term aggregation in kibana , getting below error in elasticsearch deprecation.log file
[2018-06-06T17:40:58,684][WARN ][o.e.d.s.a.MultiBucketConsumerService] This aggregation creates too many buckets (10001) and will throw an error in future versions. You should update the [search.max_buckets] cluster setting or use the [composite] aggregation to paginate all buckets in multiple requests.
How to update the search.max_buckets via cluster setting API