# How to get index in kibana

**URL:** https://discuss.elastic.co/t/how-to-get-index-in-kibana/95826
**Category:** Kibana
**Created:** [August 4, 2017, 7:02am UTC](https://discuss.elastic.co/t/how-to-get-index-in-kibana/95826 "2017-08-04T07:02:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vivekpandey564](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vivekpandey564](https://discuss.elastic.co/u/vivekpandey564)
#### Post date: [August 4, 2017, 7:02am UTC](https://discuss.elastic.co/t/how-to-get-index-in-kibana/95826/1 "2017-08-04T07:02:36Z")

</div>

Hi Below is my logstash.conf file

input {

```
file {
    add_field => ["host", "my-dev-host"]
    path => "D:\JHipster_Demo\logFile.2017-08-04.log"
    codec => "plain"
}

```

}  
filter {  
grok {  
match =\> ["path", "(?logFile.2017-08-04.log$)"]  
}

}

output {

```
elasticsearch{

		index => "%{filename}"
    hosts => ["localhost:9200"]
   
 
}

```

stdout { codec =\> rubydebug }

}

Am getting data flow with output  
"path" =\> "D:\JHipster\_Demo\logFile.2017-08-04.log",  
"@timestamp" =\> 2017-08-04T07:00:22.730Z,  
"filename" =\> "logFile.2017-08-04.log",  
"@version" =\> "1",  
"host" =\> [  
[0] "FS-WS195-D45",  
[1] "my-dev-host"  
],  
"message" =\> " 2017-08-04 12:30:22,153 INFO [metrics-logger-reporter-1-t  
hread-1] metrics: type=GAUGE, name=jvm.memory.pools.Tenured-Gen.committed, value  
=178978816\r"  
}

Now when i creating index in kibana am not able to create showing pattern not matching.

Am trying with index name as file name  
"filename" =\> "logFile.2017-08-04.log"

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [August 8, 2017, 1:41pm UTC](https://discuss.elastic.co/t/how-to-get-index-in-kibana/95826/2 "2017-08-08T13:41:37Z")

</div>

Can you do a `_cat\indices` request to your Elasticsearch instance just so you can see what the indices got named?  
After you get those you can use a wildcard for the index patttern, if you want to match all of them regardless of the date.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html)

---

<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: [September 5, 2017, 1:41pm UTC](https://discuss.elastic.co/t/how-to-get-index-in-kibana/95826/3 "2017-09-05T13:41:39Z")

</div>

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