# Kibana Index patter issue with alias

**URL:** <https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086>\
**Category:** Kibana\
**Created:** [November 20, 2020, 8:23am UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086 "2020-11-20T08:23:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ananta05](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@ananta05](https://discuss.elastic.co/u/ananta05)\
**Post date:** [November 20, 2020, 8:23am UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/1 "2020-11-20T08:23:38Z")

</div>

I am working on existing index pattern where field alias does not work when used as a part of filter.  
I have tried below things so far

1. Index pattern refresh
2. try to fetch the query sent from Kibana and it has [object object] in place of field name which is causing an error
3. created new index pattern where the same field works perfectly fine
4. Field works on search box but does not work as a filter

Please help!

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [November 21, 2020, 2:53am UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/2 "2020-11-21T02:53:15Z")

</div>

@ananta05 I'd like to reproduce this locally - which version of the stack are you running?

---

<div class="post-metadata">

**Author:** ![ananta05](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@ananta05](https://discuss.elastic.co/u/ananta05)\
**Post date:** [November 21, 2020, 7:22am UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/3 "2020-11-21T07:22:22Z")

</div>

I use 6.8

I think it wont be easy to reproduce. Any specific area I can check to solve it?

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [November 21, 2020, 2:25pm UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/4 "2020-11-21T14:25:53Z")

</div>

Can you share the query or error message you're seeing?

---

<div class="post-metadata">

**Author:** ![ananta05](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@ananta05](https://discuss.elastic.co/u/ananta05)\
**Post date:** [November 23, 2020, 6:48am UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/5 "2020-11-23T06:48:40Z")

</div>

Here is the query kibana fires when field alias is used as filter. It is captured from inspect

---

<div class="post-metadata">

**Author:** ![mattkime](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattkime/32/43522_2.png) [@mattkime](https://discuss.elastic.co/u/mattkime)\
**Post date:** [November 23, 2020, 6:29pm UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/6 "2020-11-23T18:29:19Z")

</div>

@ananta05

Which revision of 6.8 are you running? I tried this under 6.8.14 and it worked fine. Perhaps it has to do with the mapping of the particular field you're attempting to use.

--Matt

---

<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:** [December 21, 2020, 6:29pm UTC](https://discuss.elastic.co/t/kibana-index-patter-issue-with-alias/256086/7 "2020-12-21T18:29:21Z")

</div>

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