# Kibana5 only allows to create historgram based on the date field you chose when the index was created

**URL:** <https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496>\
**Category:** Kibana\
**Created:** [January 4, 2017, 1:32am UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496 "2017-01-04T01:32:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgz](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgz](https://discuss.elastic.co/u/mgz)\
**Post date:** [January 4, 2017, 1:32am UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/1 "2017-01-04T01:32:23Z")

</div>

In Kibana4, you can create histogram based on any date field in an index. But in Kibana5, you can only create histogram based on the date you chose when the index was created.

Is there anyway to workaround on this? I have multiple date fields in the index, and I want to create histogram based on any of the date field in the index.

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [January 4, 2017, 3:16pm UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/2 "2017-01-04T15:16:52Z")

</div>

I think this may be of some help. Please let me know.

> [@Date histogram + global time filter](https://discuss.elastic.co/t/date-histogram-global-time-filter/51026/2):
>
> Let me rephrase the issue to see if I understand this correctly. Problem: You have an index that has three different timestamp fields. You want a visualization for each of these three timestamp fields that aggregate data according to the respective field. You want the timepicker at the top of kibana to affect the respective timestamp field in each visualization. Issues: The timepicker only affects the field specified as Time-field of the index pattern in kibana. Suggested Solution: Create …

---

<div class="post-metadata">

**Author:** ![mgz](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgz](https://discuss.elastic.co/u/mgz)\
**Post date:** [January 4, 2017, 8:44pm UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/3 "2017-01-04T20:44:07Z")

</div>

BigFunger,

You understood my issue correctly and precisely. Now the question is how to create alias index in Kibana5?

Thanks.

---

<div class="post-metadata">

**Author:** ![mgz](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mgz](https://discuss.elastic.co/u/mgz)\
**Post date:** [January 4, 2017, 8:46pm UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/4 "2017-01-04T20:46:48Z")

</div>

Sorry, I just saw you included a link on how to create index alias in elasticsearch, I overlooked it before I sent previous reply. Is there some easier way from Kibana 5 UI to do that? So there is one elasticsearch index, and Kibana could have multiple indices map to that one elasticsearch index?

---

<div class="post-metadata">

**Author:** ![BigFunger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bigfunger/32/7323_2.png) [@BigFunger](https://discuss.elastic.co/u/BigFunger)\
**Post date:** [January 4, 2017, 9:30pm UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/5 "2017-01-04T21:30:05Z")

</div>

Creating an alias is the cleaner way to do it, but depending on the structure of your data/cluster, you can accomplish the same with a little hack/shortcut.

If your main index pattern is something like `logstash-*`, you can create another index pattern that points at the same indexes by doing something like `logstash-**`.

---

<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:** [February 1, 2017, 9:30pm UTC](https://discuss.elastic.co/t/kibana5-only-allows-to-create-historgram-based-on-the-date-field-you-chose-when-the-index-was-created/70496/6 "2017-02-01T21:30:09Z")

</div>

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