# Indices not showing on index pattern

**URL:** https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781
**Category:** Kibana
**Tags:** docker
**Created:** [March 24, 2020, 7:48am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781 "2020-03-24T07:48:02Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jdcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdcruz/32/45613_2.png) [@jdcruz](https://discuss.elastic.co/u/jdcruz)
#### Post date: [March 24, 2020, 7:48am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/1 "2020-03-24T07:48:02Z")

</div>

```auto
Hi All, 

Indices not showing on index pattern.
![Screen Shot 2020-03-24 at 3.31.36 PM|690x295](upload://60XZcdDzmbgqOdusMfy0TKUjau.png) 

docker-compose.yml config

###################
version: "3"
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.6.1
    container_name: elasticsearch
    environment:
      - discovery.type=single-node
    ports: 
    - 9200:9200
    - 9300:9300
  kibana:
    image: docker.elastic.co/kibana/kibana:7.6.1
    container_name: kibana
    environment:
        SERVER_NAME: localhost
        ELASTICSEARCH_URL: http://elasticsearch:9200/
    ports:
    - 5601:5601
  logstash:
    image: docker.elastic.co/logstash/logstash:7.6.1
    container_name: logstash
    volumes:
    -{Mypath}:/usr/share/logstash/pipeline/
    ports:
    - 9600:9600    
    depends_on:
    - elasticsearch
###################

logstash.conf
###################
input {
  file {
    type => "syslog"
    path => "{MY_var_path}/logs.log"
  }
}

output {
  stdout {
    codec => rubydebug
  }
  elasticsearch {
    hosts => ["elasticsearch:9200"]
    index => "logstash-%{+YYYY-MM-dd}"
  }
}
`###################`
ELK is up and running. 

http://localhost:9200/_cat/indices
![Screen Shot 2020-03-24 at 3.40.08 PM|690x98](upload://aiLlEjrOtCVV7B82oKH47Tl06xa.png) 

Please help.

Thank you

```

---

<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: [March 24, 2020, 10:13am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/2 "2020-03-24T10:13:25Z")

</div>

Hi and welcome to our community

seems this post is missing screenshots, or the screenshots are formatted as code, could you change that, so it would be easier to debug

many thx!  
Matthias

---

<div class="post-metadata">

### Author: ![jdcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdcruz/32/45613_2.png) [@jdcruz](https://discuss.elastic.co/u/jdcruz)
#### Post date: [March 25, 2020, 8:43am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/3 "2020-03-25T08:43:08Z")

</div>

Hi @matw  
Here are the screenshot.

Indices not showing on index pattern.

 ![Screen Shot 2020-03-24 at 3.31.36 PM](https://us1.discourse-cdn.com/elastic/original/3X/0/0/00ae14d22787ddf03a667ef1ba8aab948f92ac16.png)

[http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices)

 ![Screen Shot 2020-03-24 at 3.40.08 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/8/4834ba9e9f0aea40a1473986efbe79d40de2af50.png)

---

<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: [March 25, 2020, 9:36am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/4 "2020-03-25T09:36:06Z")

</div>

Hi

It should show non-system-indices that are available, but it seems you don't have any date in you cluster? Then there are also no indices available to select. Once you've got indices containing data you can create an index pattern

---

<div class="post-metadata">

### Author: ![jdcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdcruz/32/45613_2.png) [@jdcruz](https://discuss.elastic.co/u/jdcruz)
#### Post date: [March 25, 2020, 11:59am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/5 "2020-03-25T11:59:29Z")

</div>

Hi @matw,

Thanks for that, i'm not sure about the date in cluster can you please provide me some example? Thanks in advance

---

<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: [March 25, 2020, 12:42pm UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/6 "2020-03-25T12:42:13Z")

</div>

Sorry, was a typo, I meant : data in your cluster

---

<div class="post-metadata">

### Author: ![jdcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdcruz/32/45613_2.png) [@jdcruz](https://discuss.elastic.co/u/jdcruz)
#### Post date: [March 26, 2020, 12:17am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/7 "2020-03-26T00:17:00Z")

</div>

Hi @matw

> [@jdcruz](#):
>
> path =\> "{MY\_var\_path}/logs.log"

My thinking was my logstash.conf will pull the data("MY\_var\_path}/logs.log") and transfer to kibana.

logstash.conf file

````auto
input {
  file {
    type => "syslog"
    path => "{MY_var_path}/logs.log"
  }
}

output {
  stdout {
    codec => rubydebug
  }
  elasticsearch {
    hosts => ["elasticsearch:9200"]
    index => "logstash-%{+YYYY-MM-dd}"
  }
}

```
````

---

<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: [March 26, 2020, 6:57am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/8 "2020-03-26T06:57:16Z")

</div>

this is a valid approach, but according to you screenshot, local:9200/\_cat/indices contains no data, just system indices. so you first have to check why no data is ingested into Elasticsearch

Best,  
Matthias

---

<div class="post-metadata">

### Author: ![jdcruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdcruz/32/45613_2.png) [@jdcruz](https://discuss.elastic.co/u/jdcruz)
#### Post date: [March 26, 2020, 7:00am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/9 "2020-03-26T07:00:03Z")

</div>

Thanks @matw,

I will look on the logstash.conf file

Regards,

---

<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: [April 23, 2020, 7:00am UTC](https://discuss.elastic.co/t/indices-not-showing-on-index-pattern/224781/10 "2020-04-23T07:00:25Z")

</div>

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