# Unable to create Index in kibana

**URL:** https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633
**Category:** Kibana
**Created:** [June 25, 2020, 9:49am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633 "2020-06-25T09:49:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Magesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magesh/32/57923_2.png) [@Magesh](https://discuss.elastic.co/u/Magesh)
#### Post date: [June 25, 2020, 9:49am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633/1 "2020-06-25T09:49:51Z")

</div>

Hi  
i have created logstash index logstash\* please refer the screen

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

however i'm unable to create index pattern in Kibana, my index (logstash\*) is not getting listed, Please refer the screenshot

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/e/0ed40fcaf5d8f2cfef78abb91983650880df5051.png)

---

<div class="post-metadata">

### Author: ![abrx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abrx/32/43881_2.png) [@abrx](https://discuss.elastic.co/u/abrx)
#### Post date: [June 25, 2020, 10:02am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633/2 "2020-06-25T10:02:56Z")

</div>

You got no documents in the index `logstash-2020-...` as showned in `Docs count` on your screenshot.  
Index pattern can only be created with non-empty indices in order to fetch the keys inside.  
First index some event and you'll get what you want 🙂

---

<div class="post-metadata">

### Author: ![Magesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magesh/32/57923_2.png) [@Magesh](https://discuss.elastic.co/u/Magesh)
#### Post date: [June 25, 2020, 10:37am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633/3 "2020-06-25T10:37:02Z")

</div>

Thanks abrx, Does this mean logstash is not reading the log file  
my log file has some data. please find below the sample.

[6/25/20 1:42:10:326 HKT] 0000007c NGUtil$Server I ASND0002I: Detected server nodeagent started on node PRD\_WAAS\_SVS\_HK\_APP\_NODE03

[6/25/20 1:42:10:642 HKT] 0000009f XARecoveryDat A WTRN0151I: Preparing to call xa recover on XAResource: PRD\_TSaaS\_XA\_TFA\_HK\_DS

[6/25/20 1:42:10:785 HKT] 0000009f WSRdbXaResour E DSRA0304E: XAException occurred. XAException contents and details are: "".

[6/25/20 1:42:10:791 HKT] 0000009f WSRdbXaResour E DSRA0302E: XAException occurred. Error code is: XAER\_RMERR (-3). Exception is:

[6/25/20 1:42:10:791 HKT] 0000009f XARminst E WTRN0037W: The transaction service encountered an error on an xa\_recover operation. The resource was [com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@97cd1e2c](mailto:com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@97cd1e2c). The error code was XAER\_RMERR. The exception stack trace follows: javax.transaction.xa.XAException

---

<div class="post-metadata">

### Author: ![Magesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magesh/32/57923_2.png) [@Magesh](https://discuss.elastic.co/u/Magesh)
#### Post date: [June 26, 2020, 11:46am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633/4 "2020-06-26T11:46:07Z")

</div>

Thanks it worked

---

<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 24, 2020, 11:46am UTC](https://discuss.elastic.co/t/unable-to-create-index-in-kibana/238633/5 "2020-07-24T11:46:17Z")

</div>

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