# Looks like you don't have any metrics indices

**URL:** <https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933>\
**Category:** Logstash\
**Created:** [July 5, 2020, 6:03pm UTC](https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933 "2020-07-05T18:03:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DucretJe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ducretje/32/79868_2.png) [@DucretJe](https://discuss.elastic.co/u/DucretJe)\
**Post date:** [July 5, 2020, 6:03pm UTC](https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933/1 "2020-07-05T18:03:49Z")

</div>

Hi there,

I'm trying to set up a monitoring system with ELK.  
I deploy Beats on my infra  
Beats output to Logstash server  
Logstash server output to Elasticsearch Server  
And I want to visualize my data with Kibana.

On Kibana, I can discover my Data:

 ![Capture d’écran 2020-07-05 à 19.57.58](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a1678b4213dc96a62bee75a5f8edc70abe284618.png)

My problem is when I try to use the metric (or log) app:  
I get the "Looks like you don't have any metrics indices." message, and I don't understand why

Logstash (running in docker) uses the following /usr/share/logstash/pipelines.yml

```auto
- pipeline.id: beats
path.config: "/usr/share/logstash/pipeline/beats.conf"

```

and the /usr/share/logstash/pipeline/beats.conf

```auto
input {
  beats {
    type => "beats"
    port => 5044
    tags => ["beats", "filebeat"]
  }
}

output {
  stdout {
    codec => rubydebug
  }
  elasticsearch {
    hosts => ["elasticsearch:9200"]
  }
}

```

And here is my metricbeat.yml file

```auto
name: " {{ ansible_hostname }} "

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

setup.kibana:
  host: "{{ kibana_host }}:{{ kibana_port }}"

#output.elasticsearch:
  #hosts: ["{{ elasticsearch_host }}:{{ elasticsearch_port }}"]

output.logstash:
  hosts: ["{{ logstash_host }}:{{ logstash_port }}"]
  index: metricbeat

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

```

What do I miss?

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fadjar340/32/43610_2.png) [@fadjar340](https://discuss.elastic.co/u/fadjar340)\
**Post date:** [July 9, 2020, 4:03pm UTC](https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933/2 "2020-07-09T16:03:50Z")

</div>

Because pipeline is yml, indentation is important..

> [@DucretJe](#):
>
> ```auto
> - pipeline.id: beats
> path.config: "/usr/share/logstash/pipeline/beats.conf"
> 
> ```

Try this:

```auto
- pipeline.id: beats
  path.config: "/usr/share/logstash/pipeline/beats.conf"

```

---

<div class="post-metadata">

**Author:** ![DucretJe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ducretje/32/79868_2.png) [@DucretJe](https://discuss.elastic.co/u/DucretJe)\
**Post date:** [July 9, 2020, 4:57pm UTC](https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933/3 "2020-07-09T16:57:50Z")

</div>

Hi thanks for your answer!

I tried it but didn't fix the problem.  
I fixed it with the following beats.conf file:

```auto
input {
  beats {
    type => "beats"
    port => 5044
  }
}

output {
  stdout {
    codec => rubydebug
  }
  elasticsearch {
    hosts => ["elasticsearch:9200"]
    manage_template => false
    index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    document_type => "%{[@metadata][type]}"
  }
}

```

---

<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:** [August 6, 2020, 4:57pm UTC](https://discuss.elastic.co/t/looks-like-you-dont-have-any-metrics-indices/239933/4 "2020-08-06T16:57:55Z")

</div>

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