# Error : There are no external requests known to support wildcards that don't support replacing their indices

**URL:** <https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881>\
**Category:** Elasticsearch\
**Created:** [November 21, 2019, 12:12pm UTC](https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881 "2019-11-21T12:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahab/32/47843_2.png) [@shahab](https://discuss.elastic.co/u/shahab)\
**Post date:** [November 21, 2019, 12:12pm UTC](https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881/1 "2019-11-21T12:12:00Z")

</div>

Hi,  
I was wondering if anyone could help me with my problem:

I have a template and number of indices are mapped using the template.  
i.e.  
cdr\_xyz\_1234  
cdr\_xyz\_5689  
cdr\_xyz\_9876

I run a search query on all the indices and it works fine  
GET cdr\_xyz\_\*/\_search  
{  
"size": 10000,  
"query": {  
"bool": {  
"filter": [  
{  
"range": {  
"call\_datetime\_iso": {  
"gte": "2019-11-20"  
}  
}  
}  
]  
}  
}  
}

but if I run a aggregate search query

GET cdr\_xyz\_\*/\_serach  
{ "size" : 0,  
"query":  
{"bool":  
{"must":  
[  
{"match": {"call\_type": "MOBILE"}}  
]  
}  
},  
"aggs":  
{"account":  
{"terms": {"field": "accountid.keyword"},  
"aggs":  
{"calls\_over\_time":  
{"date\_histogram":  
{"field": "call\_datetime\_iso", "interval": "week"}  
}  
}  
}  
}  
}

I get this  
{  
"error": {  
"root\_cause": [  
{  
"type": "security\_exception",  
"reason": "action [indices:admin/create] is unauthorized for user [elastic]"  
}  
],  
"type": "security\_exception",  
"reason": "action [indices:admin/create] is unauthorized for user [elastic]",  
"caused\_by": {  
"type": "illegal\_state\_exception",  
"reason": "There are no external requests known to support wildcards that don't support replacing their indices"  
}  
},  
"status": 403  
}

I even created a user with the role which has "cdr\_xyz\_\*" all privileges but still get the same error.  
Could you please tell me how to resolve this issue.

Many thanks

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [November 22, 2019, 3:57am UTC](https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881/2 "2019-11-22T03:57:38Z")

</div>

> [@shahab](#):
>
> GET cdr\_xyz\_\*/ **\_serach**

Try `_search`.

---

<div class="post-metadata">

**Author:** ![shahab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahab/32/47843_2.png) [@shahab](https://discuss.elastic.co/u/shahab)\
**Post date:** [November 22, 2019, 8:28am UTC](https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881/3 "2019-11-22T08:28:34Z")

</div>

> [@shahab](#):
>
> {"terms": {"field": "accountid.keyword"}

Thanks Geln. That was a mistype when I create the sample.  
I changes the {"terms": {"field": "accountid.keyword"} to {"terms": {"field": "accountid"} and it seems to work but I don't know why as the accountid is mapped as keyword!!

---

<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 20, 2019, 8:28am UTC](https://discuss.elastic.co/t/error-there-are-no-external-requests-known-to-support-wildcards-that-dont-support-replacing-their-indices/208881/4 "2019-12-20T08:28:36Z")

</div>

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