# Issues with filtered aliases in Kibana

**URL:** <https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897>\
**Category:** Kibana\
**Created:** [August 5, 2019, 11:21pm UTC](https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897 "2019-08-05T23:21:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mj2019](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mj2019](https://discuss.elastic.co/u/mj2019)\
**Post date:** [August 5, 2019, 11:21pm UTC](https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897/1 "2019-08-05T23:21:11Z")

</div>

Hi Experts,

I have created a filtered alias and trying to create index pattern based on the alias. However i cannot see the filtered alias when i try to create index pattern in Kibana. Also if i query the ElastiSearch directly with the alias, I can see the filtered alias retrieving the documents correctly. Is it possible to use filtered aliases in Kibana at all? Below is my example. I am using ELK 7.2

"actions": [  
{  
"add": {  
"index": "customers\_2018\_05\_06",  
"alias": "customers\_prime\_2018",  
"filter": {  
"term": {  
"Cust\_Type.keyword": "Prime"  
}  
}  
}  
}  
]

---

<div class="post-metadata">

**Author:** ![kumar8055](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@kumar8055](https://discuss.elastic.co/u/kumar8055)\
**Post date:** [August 6, 2019, 5:06am UTC](https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897/2 "2019-08-06T05:06:19Z")

</div>

Hi @mj2019 ,

Can you try this

curl -X POST "master\_host:9100/\_aliases" -H 'Content-Type: application/json' -d  
'{  
"actions": [  
{  
"add": {  
"indices": [  
"index\_name or pattern",  
],  
"filter": {  
"term": {  
"Cust\_Type.keyword": "Prime"  
}  
"alias": "alias\_pattern"  
}  
}  
]  
}'

---

<div class="post-metadata">

**Author:** ![mj2019](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mj2019](https://discuss.elastic.co/u/mj2019)\
**Post date:** [August 6, 2019, 3:51pm UTC](https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897/3 "2019-08-06T15:51:42Z")

</div>

Hi @kumar8055

Thank for the response. I tried it but no luck. As I said, I can see the filter gets applied correctly if i query the filtered alias but Kibana cannot show the filtered alias (can show non-filtered alias) in the managment page while creating the index pattern. I am wondering if this is a defect on Kibana. Any guidance would be appreciated. Thanks

---

<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:** [September 3, 2019, 3:51pm UTC](https://discuss.elastic.co/t/issues-with-filtered-aliases-in-kibana/193897/4 "2019-09-03T15:51:43Z")

</div>

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