# Index creation does not work

**URL:** <https://discuss.elastic.co/t/index-creation-does-not-work/269395>\
**Category:** Kibana\
**Created:** [April 7, 2021, 3:54am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395 "2021-04-07T03:54:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 7, 2021, 3:54am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/1 "2021-04-07T03:54:18Z")

</div>

I'm trying to create an index from Kibana since I already have logs in elasitcsearch.

If I go to Stack Management \> Index ptterns, give it an index pattern name, and then run Create index pattern, I am taken to a page stating that the index has been created. You can check the type of Fields here.

However, when I open Discover, the page to create the index pattern is displayed and I cannot check the index.

What should I do?

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 7, 2021, 4:14am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/2 "2021-04-07T04:14:24Z")

</div>

elasticsearch is not outputting any significant logs.

The kibana log looks like this

```auto
# tail /var/log/kibana/kibana.log
... snip ...
{"type":"log","@timestamp":"2021-04-07T13:05:55+09:00","tags":["warning","plugins","monitoring","monitoring","kibana-monitoring"],"pid":25076,"message":"Error: Cluster client cannot be used after it has been closed.\n at LegacyClusterClient.assertIsNotClosed (/usr/share/kibana/src/core/server/elasticsearch/legacy/cluster_client.js:195:13)\n at LegacyClusterClient.callAsInternalUser (/usr/share/kibana/src/core/server/elasticsearch/legacy/cluster_client.js:115:12)\n at sendBulkPayload (/usr/share/kibana/x-pack/plugins/monitoring/server/kibana_monitoring/lib/send_bulk_payload.js:22:18)\n at BulkUploader._onPayload (/usr/share/kibana/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js:209:43)\n at BulkUploader._fetchAndUpload (/usr/share/kibana/x-pack/plugins/monitoring/server/kibana_monitoring/bulk_uploader.js:195:20)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:93:5)"}
{"type":"log","@timestamp":"2021-04-07T13:05:55+09:00","tags":["warning","plugins","monitoring","monitoring","kibana-monitoring"],"pid":25076,"message":"Unable to bulk upload the stats payload to the local cluster"}

```

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 7, 2021, 5:26am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/3 "2021-04-07T05:26:19Z")

</div>

It seems that the index is indeed being created.

```auto
GET /_cat/indices?v

```

```auto
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open api-2021.04.07 7Ng-eUJ-Ty-1CsM068iJqg 1 1 738980 0 120.9mb 120.9mb

```

Why does Kibana refuse to create index patterns?

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 7, 2021, 6:29am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/4 "2021-04-07T06:29:51Z")

</div>

It might be affected by the change in the destination of elasticsearch's index.

I restarted kibana and now I can create the index pattern.

```auto
systemctl restart kibana.service

```

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 7, 2021, 6:30am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/5 "2021-04-07T06:30:29Z")

</div>

However, after restarting, there were many index patterns that kept being created, mistakenly thinking that they had not been created before.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [April 12, 2021, 2:21pm UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/6 "2021-04-12T14:21:58Z")

</div>

Hi  
Which version of Kibana are you using and in which environment?  
Thanks & Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 13, 2021, 1:03am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/7 "2021-04-13T01:03:51Z")

</div>

Thank you for your comments.  
I am using Kibana 7.12 (latest) on CentOS 7.

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [April 15, 2021, 1:38pm UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/8 "2021-04-15T13:38:10Z")

</div>

Thx, do you use a proxy in your setup?

---

<div class="post-metadata">

**Author:** ![its-ogawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/its-ogawa/32/120829_2.png) [@its-ogawa](https://discuss.elastic.co/u/its-ogawa)\
**Post date:** [April 19, 2021, 1:03am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/9 "2021-04-19T01:03:23Z")

</div>

Yes, it is.  
For security reasons, the internal network is connected to the external network via a proxy server.

---

<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:** [May 17, 2021, 1:03am UTC](https://discuss.elastic.co/t/index-creation-does-not-work/269395/10 "2021-05-17T01:03:46Z")

</div>

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