# BAD request after deleting an index pattern and recreating it

**URL:** <https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333>\
**Category:** Kibana\
**Created:** [October 26, 2017, 5:21am UTC](https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333 "2017-10-26T05:21:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdalians](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@abdalians](https://discuss.elastic.co/u/abdalians)\
**Post date:** [October 26, 2017, 5:21am UTC](https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333/1 "2017-10-26T05:21:44Z")

</div>

Hi all,

Continuing the discussion from [Kibana shows blank sites in Discover, Management, ... after deleting/creation of default index pattern](https://discuss.elastic.co/t/kibana-shows-blank-sites-in-discover-management-after-deleting-creation-of-default-index-pattern/72405/7):

I had an index-pattern logstash-2017\* which I deleted, then I recreated it with

PUT .kibana/index-pattern/logstash-2017\*  
{"title" : "logstash-2017\*", "timeFieldName": "@timestamp"}

now I see it in the list of index-patterns but when I try to select it, it doesnt do anything.

If I try and select it in the Management tools Index PAtterns, I get a bad request error.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![abdalians](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@abdalians](https://discuss.elastic.co/u/abdalians)\
**Post date:** [October 26, 2017, 5:32am UTC](https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333/2 "2017-10-26T05:32:47Z")

</div>

this is the error I get

Error: Request to Elasticsearch failed: "Bad Request"  
at [https://localhost:8443/bundles/kibana.bundle.js?v=15104:236:16982](https://localhost:8443/bundles/kibana.bundle.js?v=15104:236:16982)  
at processQueue ([https://localhost:8443/bundles/commons.bundle.js?v=15104:38:23621](https://localhost:8443/bundles/commons.bundle.js?v=15104:38:23621))  
at [https://localhost:8443/bundles/commons.bundle.js?v=15104:38:23888](https://localhost:8443/bundles/commons.bundle.js?v=15104:38:23888)  
at Scope.$eval ([https://localhost:8443/bundles/commons.bundle.js?v=15104:39:4619](https://localhost:8443/bundles/commons.bundle.js?v=15104:39:4619))  
at Scope.$digest ([https://localhost:8443/bundles/commons.bundle.js?v=15104:39:2359](https://localhost:8443/bundles/commons.bundle.js?v=15104:39:2359))  
at Scope.$apply ([https://localhost:8443/bundles/commons.bundle.js?v=15104:39:5037](https://localhost:8443/bundles/commons.bundle.js?v=15104:39:5037))  
at done ([https://localhost:8443/bundles/commons.bundle.js?v=15104:37:25027](https://localhost:8443/bundles/commons.bundle.js?v=15104:37:25027))  
at completeRequest ([https://localhost:8443/bundles/commons.bundle.js?v=15104:37:28702](https://localhost:8443/bundles/commons.bundle.js?v=15104:37:28702))  
at XMLHttpRequest.xhr.onload ([https://localhost:8443/bundles/commons.bundle.js?v=15104:37:29634](https://localhost:8443/bundles/commons.bundle.js?v=15104:37:29634))

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 27, 2017, 12:14am UTC](https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333/3 "2017-10-27T00:14:02Z")

</div>

What is the reason for creating the index pattern in Elasticsearch directly?

Can you try to click the "Refresh field list" button on the index pattern page to see if that resolves the issue?

---

<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:** [November 24, 2017, 12:14am UTC](https://discuss.elastic.co/t/bad-request-after-deleting-an-index-pattern-and-recreating-it/105333/4 "2017-11-24T00:14:18Z")

</div>

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