# Kibana POST 403 (forbidden) on create index

**URL:** <https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766>\
**Category:** Kibana\
**Created:** [June 20, 2018, 10:02pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766 "2018-06-20T22:02:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![databeata](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@databeata](https://discuss.elastic.co/u/databeata)\
**Post date:** [June 20, 2018, 10:02pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/1 "2018-06-20T22:02:39Z")

</div>

kibana POST 403 (forbidden) on create index.

kibana \> management \> index patterns \> create index pattern

index pattern: a\_test\_index

nothing happened. index was not created.

browser chrome developer tools

f12

POST [http://ip:5601/api/saved\_objects/index-pattern](http://ip:5601/api/saved_objects/index-pattern) 403 (forbidden)  
commons.bundle.js?v=16070:38

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6cd9b7b39d1966cba43118ae793a25feaf4450da.png)

kibana \> dev tools \> console

GET \_cat/indices

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4ba9fb8868cb89f9b87d3bb9e5c5991b36020760.png)

kibana \> dev tools \> console

POST .kibana/\_search  
{  
"query": {  
"term": {  
"type": {  
"value": "a\_test\_index"  
}  
}  
}  
}

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f26813a789ac5fa083ea9d88baccc579f75aee5b.png)

kibana management \> version 6.0.0

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 20, 2018, 10:58pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/2 "2018-06-20T22:58:59Z")

</div>

> [@databeata](#):
>
> POST a\_test\_index/doc/1 { "test1": "test2" }

I was able to POST it successfully . Try putting the json in its own line

```auto
PUT a_test_index1/doc/1 
{ "test1": "test2" }

```

Also I was able to create an index pattern with `a_test_index` from the index management UI.

Try it and let us know

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![databeata](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@databeata](https://discuss.elastic.co/u/databeata)\
**Post date:** [June 21, 2018, 2:24am UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/3 "2018-06-21T02:24:21Z")

</div>

kibana create index is not working.

kibana \> management \> index pattern

index pattern: a\_test\_index

create

Nothing happened. The index was not configured.

browsers developer tools

f12

Failed to load resource:  
the server responded with a status of 404 (Not Found)  
:5601/api/...

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 21, 2018, 2:46am UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/4 "2018-06-21T02:46:12Z")

</div>

when you do a

```auto
GET _cat/indices

```

```auto
green open .kibana iqapeUmHSTGYslh2vGhzwg 1 0 3 0 13.3kb 13.3kb
yellow open a_test_index DiRemnUxRMuzmxvI-Hczyg 1 1 1 0 3.3kb 3.3kb

```

Am also able to create an index pattern for `a_test_index` as shown in the screenshot below.

 ![18%20PM](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c0ebb5f79efbbe3be41c6c067d5162b4b3a8044.png)

I suggest u to plz check your steps. Am on 6.3.0 v.

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![databeata](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@databeata](https://discuss.elastic.co/u/databeata)\
**Post date:** [June 21, 2018, 2:34pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/5 "2018-06-21T14:34:36Z")

</div>

kibana \> management \> version: 6.0.0

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 21, 2018, 7:23pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/6 "2018-06-21T19:23:28Z")

</div>

You are giving very little information and all one liners. More logs, screenshots should help. However, can you try

```auto
POST .kibana/_search
{
  "query": {
    "term": {
      "type": {
        "value": "index-pattern"
      }
    }
  }
}

```

see if it's there in the search results. Then try your steps again but with dev tools open and note any errors.

Hope this helps,

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![databeata](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@databeata](https://discuss.elastic.co/u/databeata)\
**Post date:** [June 22, 2018, 2:56pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/7 "2018-06-22T14:56:29Z")

</div>

It is resolved by unlocking all indexes.

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [June 22, 2018, 4:06pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/8 "2018-06-22T16:06:22Z")

</div>

Am glad your issue is now resolved.

Thanks  
Rashmi

---

<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:** [July 20, 2018, 4:06pm UTC](https://discuss.elastic.co/t/kibana-post-403-forbidden-on-create-index/136766/9 "2018-07-20T16:06:27Z")

</div>

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