# ES aliases in kibana

**URL:** <https://discuss.elastic.co/t/es-aliases-in-kibana/22182>\
**Category:** Elasticsearch\
**Created:** [February 16, 2015, 8:21am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182 "2015-02-16T08:21:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![krisss](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@krisss](https://discuss.elastic.co/u/krisss)\
**Post date:** [February 16, 2015, 8:21am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/1 "2015-02-16T08:21:50Z")

</div>

Hello,

Do you know whether it is possible for Kibana to query ES index aliases?  
The only solution I found is by rewrite rule in ngnix.  
I want to create predefined search terms for users.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 16, 2015, 9:16am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/2 "2015-02-16T09:16:03Z")

</div>

Yes it is, because to KB it is just an index.

What is the problem you are seeing?

On 16 February 2015 at 19:21, krisss [adamskikrzysiek@gmail.com](mailto:adamskikrzysiek@gmail.com) wrote:

> Hello,
> 
> Do you know whether it is possible for Kibana to query ES index aliases?  
> The only solution I found is by rewrite rule in ngnix.  
> I want to create predefined search terms for users.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9%2BhFbpT1HRKd\_HZ5qTDPzMtNqQqNTTLEfHoH6h\_wBkbg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9%2BhFbpT1HRKd_HZ5qTDPzMtNqQqNTTLEfHoH6h_wBkbg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![krisss](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@krisss](https://discuss.elastic.co/u/krisss)\
**Post date:** [February 16, 2015, 9:22am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/3 "2015-02-16T09:22:41Z")

</div>

Basically I can query the alias using REST API, but I cannot see the alias  
as extra index in kibana. I would expect having one.

curl -XGET '[http://localhost:9200/test\_alert1/\_search?pretty](http://localhost:9200/test_alert1/_search?pretty)'

On Monday, February 16, 2015 at 10:16:30 AM UTC+1, Mark Walkom wrote:

> Yes it is, because to KB it is just an index.
> 
> What is the problem you are seeing?
> 
> On 16 February 2015 at 19:21, krisss \<[adamski...@gmail.com](mailto:adamski...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > Hello,
> > 
> > Do you know whether it is possible for Kibana to query ES index aliases?  
> > The only solution I found is by rewrite rule in ngnix.  
> > I want to create predefined search terms for users.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/139831cc-a8bc-4841-ad39-49897e70319b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/139831cc-a8bc-4841-ad39-49897e70319b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![krisss](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@krisss](https://discuss.elastic.co/u/krisss)\
**Post date:** [February 16, 2015, 9:57am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/4 "2015-02-16T09:57:58Z")

</div>

hmmm it works when I set a default index for the dashboard as alias name  
So the question is how to make a filter/lucene query based on the alias  
name.

On Monday, February 16, 2015 at 10:22:41 AM UTC+1, krisss wrote:

> Basically I can query the alias using REST API, but I cannot see the alias  
> as extra index in kibana. I would expect having one.
> 
> curl -XGET '[http://localhost:9200/test\_alert1/\_search?pretty](http://localhost:9200/test_alert1/_search?pretty)'
> 
> On Monday, February 16, 2015 at 10:16:30 AM UTC+1, Mark Walkom wrote:
> 
> > Yes it is, because to KB it is just an index.
> > 
> > What is the problem you are seeing?
> > 
> > On 16 February 2015 at 19:21, krisss [adamski...@gmail.com](mailto:adamski...@gmail.com) wrote:
> > 
> > > Hello,
> > > 
> > > Do you know whether it is possible for Kibana to query ES index aliases?  
> > > The only solution I found is by rewrite rule in ngnix.  
> > > I want to create predefined search terms for users.
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 16, 2015, 10:36am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/5 "2015-02-16T10:36:32Z")

</div>

Ahh yeah, you need to do that part!

If you have set the dashboard to query the alias then you don't need to  
worry about the filtering or lucene query, because everything you apply to  
that dashboard will only interact with the indices attached to the alias.  
Unless I am misunderstanding you that is.

On 16 February 2015 at 20:57, krisss [adamskikrzysiek@gmail.com](mailto:adamskikrzysiek@gmail.com) wrote:

> hmmm it works when I set a default index for the dashboard as alias name  
> So the question is how to make a filter/lucene query based on the alias  
> name.
> 
> On Monday, February 16, 2015 at 10:22:41 AM UTC+1, krisss wrote:
> 
> > Basically I can query the alias using REST API, but I cannot see the  
> > alias as extra index in kibana. I would expect having one.
> > 
> > curl -XGET '[http://localhost:9200/test\_alert1/\_search?pretty](http://localhost:9200/test_alert1/_search?pretty)'
> > 
> > On Monday, February 16, 2015 at 10:16:30 AM UTC+1, Mark Walkom wrote:
> > 
> > > Yes it is, because to KB it is just an index.
> > > 
> > > What is the problem you are seeing?
> > > 
> > > On 16 February 2015 at 19:21, krisss [adamski...@gmail.com](mailto:adamski...@gmail.com) wrote:
> > > 
> > > > Hello,
> > > > 
> > > > Do you know whether it is possible for Kibana to query ES index  
> > > > aliases? The only solution I found is by rewrite rule in ngnix.  
> > > > I want to create predefined search terms for users.
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%  
> > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-PO57TUfbspw6n6n\_pRhDyipqKHu%2BjMMrECXFRiA4e4Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-PO57TUfbspw6n6n_pRhDyipqKHu%2BjMMrECXFRiA4e4Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![krisss](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@krisss](https://discuss.elastic.co/u/krisss)\
**Post date:** [February 16, 2015, 10:44am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/6 "2015-02-16T10:44:29Z")

</div>

Yes it works. This basically means I need a separate dashboard for aliases.  
I would prefer filtering one dashboard by alias name (like \_alias:myalias),  
but this can be a workaround for me.  
Thanks.

On Monday, February 16, 2015 at 11:37:02 AM UTC+1, Mark Walkom wrote:

> Ahh yeah, you need to do that part!
> 
> If you have set the dashboard to query the alias then you don't need to  
> worry about the filtering or lucene query, because everything you apply to  
> that dashboard will only interact with the indices attached to the alias.  
> Unless I am misunderstanding you that is.
> 
> On 16 February 2015 at 20:57, krisss \<[adamski...@gmail.com](mailto:adamski...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > hmmm it works when I set a default index for the dashboard as alias name  
> > So the question is how to make a filter/lucene query based on the alias  
> > name.
> > 
> > On Monday, February 16, 2015 at 10:22:41 AM UTC+1, krisss wrote:
> > 
> > > Basically I can query the alias using REST API, but I cannot see the  
> > > alias as extra index in kibana. I would expect having one.
> > > 
> > > curl -XGET '[http://localhost:9200/test\_alert1/\_search?pretty](http://localhost:9200/test_alert1/_search?pretty)'
> > > 
> > > On Monday, February 16, 2015 at 10:16:30 AM UTC+1, Mark Walkom wrote:
> > > 
> > > > Yes it is, because to KB it is just an index.
> > > > 
> > > > What is the problem you are seeing?
> > > > 
> > > > On 16 February 2015 at 19:21, krisss [adamski...@gmail.com](mailto:adamski...@gmail.com) wrote:
> > > > 
> > > > > Hello,
> > > > > 
> > > > > Do you know whether it is possible for Kibana to query ES index  
> > > > > aliases? The only solution I found is by rewrite rule in ngnix.  
> > > > > I want to create predefined search terms for users.
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%  
> > > > > [40googlegroups.com](http://40googlegroups.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/25ab1ade-74b2-442d-b501-8889a2c47710%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups  
> > > > "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an  
> > > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/13a7995e-4fd3-4655-8f99-ba4d49d653c6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5ceafc46-997c-450e-86e6-bcc994b8a5cb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5ceafc46-997c-450e-86e6-bcc994b8a5cb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:32am UTC](https://discuss.elastic.co/t/es-aliases-in-kibana/22182/7 "2017-07-06T00:32:30Z")

</div>


