# Bad request when refreshing index pattern fields

**URL:** <https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202>\
**Category:** Kibana\
**Created:** [February 20, 2020, 2:13pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202 "2020-02-20T14:13:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridago](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ridago](https://discuss.elastic.co/u/ridago)\
**Post date:** [February 20, 2020, 2:13pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/1 "2020-02-20T14:13:16Z")

</div>

After trying to setup ILM on my elasticsearch index i was suddenly no longer able to refresh index patterns. I just get Error fetching fields for index pattern... and the error is always Bad request, but it refers to different js lines. The most recent one was: Error: Bad Request  
at [http://192.168.10.234:5601/bundles/commons.bundle.js:3:1368383](http://192.168.10.234:5601/bundles/commons.bundle.js:3:1368383). If I open the console I see something this:  
GET [http://192.168.10.234:5601/api/index\_patterns/\_fields\_for\_wildcard?pattern=corvus\*&meta\_fields=\_source](http://192.168.10.234:5601/api/index_patterns/_fields_for_wildcard?pattern=corvus*&meta_fields=_source) 400 (Bad Request)  
but I don't know how to get any useful information out of the console.

I've now tried deleting all my indexes and starting completely from scratch, but the error still persists.

I tried turning on verbouse logging, but I can't get anything useful out of that. All I see there is:  
{"type":"response","@timestamp":"2020-02-20T14:00:05Z","tags":,"pid":2169,"method":"get","statusCode":400,"req":{"url":"/api/index\_patterns/\_fields\_for\_wildcard?pattern=corvus\*&meta\_fields=\_source","method":  
"get","headers":{"host":"192.168.10.234:5601","connection":"keep-alive","kbn-version":"7.6.0","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116  
Safari/537.36","content-type":"application/json","accept":"_/_","referer":"[http://192.168.10.234:5601/app/kibana","accept-encoding":"gzip](http://192.168.10.234:5601/app/kibana%22,%22accept-encoding%22:%22gzip), deflate","accept-language":"en-US,en;q=0.9,nb;q=0.8,en-GB;q=0.7"},"re  
moteAddress":"192.168.10.205","userAgent":"192.168.10.205","referer":"[http://192.168.10.234:5601/app/kibana"},"res":{"statusCode":400,"responseTime":51,"contentLength":9},"message":"GET](http://192.168.10.234:5601/app/kibana%22%7D,%22res%22:%7B%22statusCode%22:400,%22responseTime%22:51,%22contentLength%22:9%7D,%22message%22:%22GET) /api/index\_patterns/\_fi  
elds\_for\_wildcard?pattern=corvus\*&meta\_fields=\_source 400 51ms - 9.0B"}

---

<div class="post-metadata">

**Author:** ![ridago](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ridago](https://discuss.elastic.co/u/ridago)\
**Post date:** [February 20, 2020, 2:27pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/2 "2020-02-20T14:27:27Z")

</div>

I have also tried creating a very basic index where I just manually inserted four documents with simple test messages and I was still unable to reload fields for an index pattern matching this test index

---

<div class="post-metadata">

**Author:** ![ridago](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ridago](https://discuss.elastic.co/u/ridago)\
**Post date:** [February 20, 2020, 2:37pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/3 "2020-02-20T14:37:05Z")

</div>

I have now tried reinstalling Kibana with sudo apt-get remove --purge kibana and then sudo apt-get install kibana. That did not make a difference either

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 24, 2020, 10:02pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/4 "2020-02-24T22:02:15Z")

</div>

Hi, are there any clues in the Elasticsearch logs? Sometimes an error in a response from a Kibana API is a pass-through of an Elasticsearch error.

---

<div class="post-metadata">

**Author:** ![ridago](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@ridago](https://discuss.elastic.co/u/ridago)\
**Post date:** [March 3, 2020, 2:35pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/5 "2020-03-03T14:35:17Z")

</div>

From what I can remember, I didn't find any errors in the Elasticsearch logs (as far as I could tell). I ended up creating a new VM and setting up everything from scratch. Not having this problem in the new VM.

---

<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:** [March 31, 2020, 2:35pm UTC](https://discuss.elastic.co/t/bad-request-when-refreshing-index-pattern-fields/220202/6 "2020-03-31T14:35:23Z")

</div>

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