# Custom Label field not available for MaxBucket aggregation

**URL:** <https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045>\
**Category:** Kibana\
**Created:** [May 31, 2020, 5:48am UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045 "2020-05-31T05:48:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay3](https://avatars.discourse-cdn.com/v4/letter/v/c6cbf5/32.png) [@vijay3](https://discuss.elastic.co/u/vijay3)\
**Post date:** [May 31, 2020, 5:48am UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/1 "2020-05-31T05:48:07Z")

</div>

Whenever i am using "Max Bucket" sibling aggregation in "Metrics" section, i am not able to get custom field. The title is always something like " Overall Max of Count".  
Using Kibana 7.7 . Please guide me how to get custom label for the same.

---

<div class="post-metadata">

**Author:** ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)\
**Post date:** [June 4, 2020, 8:37am UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/2 "2020-06-04T08:37:04Z")

</div>

I think you have just hit a regression. Let me quickly ask the team in charge of Visualize and I will be back to you with a the issue to track on GH if any

---

<div class="post-metadata">

**Author:** ![pikonio](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@pikonio](https://discuss.elastic.co/u/pikonio)\
**Post date:** [June 19, 2020, 5:53am UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/3 "2020-06-19T05:53:09Z")

</div>

any updates on that issue? I am facing a similar issue and I just found your answer and it must be a regression issue. I tested the same thing on Kibana 6.4.0 and there is a custom label field that doesn't exist on Kibana 7.7.1

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/9/d95fe887330d206be04c804245092e678a7b2dd8.png)

---

<div class="post-metadata">

**Author:** ![pikonio](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@pikonio](https://discuss.elastic.co/u/pikonio)\
**Post date:** [June 19, 2020, 4:31pm UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/4 "2020-06-19T16:31:35Z")

</div>

It looks like the bug is reported and documented as a bug on github [https://github.com/elastic/kibana/issues/69014](https://github.com/elastic/kibana/issues/69014)  
A quick workaround for me was to export the visualization, edit the ndjson file and add a customLabel like that `\"customLabel\":\"fffff\",\"customMetric\":{\"enabled\":true,\` and import it again. This is not the best solution because you have to repeat the steps every time you want to modify the label.

---

<div class="post-metadata">

**Author:** ![jsteenkamp](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jsteenkamp](https://discuss.elastic.co/u/jsteenkamp)\
**Post date:** [June 30, 2020, 2:48pm UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/5 "2020-06-30T14:48:15Z")

</div>

As a temporary solution you are able to edit the json directly.

Stack Management \> Saved objects \> Edit visualization

inspect (three dots)

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb2418f761b45a9f950b9dc50c3e19da16218156.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e3474435947116f0b62df74ee75802bfee48fd9c.png)

save

please note the warning: Modifying objects is for advanced users only...

---

<div class="post-metadata">

**Author:** ![pikonio](https://avatars.discourse-cdn.com/v4/letter/p/5fc32e/32.png) [@pikonio](https://discuss.elastic.co/u/pikonio)\
**Post date:** [July 14, 2020, 7:20pm UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/6 "2020-07-14T19:20:42Z")

</div>

Thanks for the workaround, I didn't know you can edit it through Kibana, nice trick.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 11, 2020, 7:20pm UTC](https://discuss.elastic.co/t/custom-label-field-not-available-for-maxbucket-aggregation/235045/7 "2020-08-11T19:20:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
