# Load metricbeat sample dashboards in 6.1.2

**URL:** https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753
**Category:** Beats
**Tags:** metricbeat
**Created:** [January 23, 2018, 9:30pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753 "2018-01-23T21:30:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ravikumar\_G](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Ravikumar\_G](https://discuss.elastic.co/u/Ravikumar_G)
#### Post date: [January 23, 2018, 9:30pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753/1 "2018-01-23T21:30:53Z")

</div>

just wondering so many options changed in ES 6.1.2 version wondersing how to load beats-dashboards-6.1.2.zip now

previously in 5.X followed like this

```auto
[root@localhost]# pwd
/usr/share/metricbeat/scripts
[root@localhost]# ./import_dashboards -file /root/beats-dashboards-5.5.1.zip -es http://10.251.33.130:8888 -user XXXX -pass XXXX

```

In documents mentioned in little confusion any help would be great

[https://www.elastic.co/guide/en/beats/metricbeat/6.1/configuration-dashboards.html](https://www.elastic.co/guide/en/beats/metricbeat/6.1/configuration-dashboards.html)

---

<div class="post-metadata">

### Author: ![Ravikumar\_G](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Ravikumar\_G](https://discuss.elastic.co/u/Ravikumar_G)
#### Post date: [January 24, 2018, 4:25pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753/2 "2018-01-24T16:25:31Z")

</div>

Figured 🙂

-- Edit metricbeat.yml at /etc/metricbeat and there setup the config as :

```auto
setup.kibana:
  host: "localhost:5601"
  #Add your ES IP

And change Elasticsearch output as below:
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9160"]
    # Add your ES details

```

-- Then run from /etc/metricbeat  
`/usr/share/metricbeat/bin/metricbeat setup --dashboards`

you might get an error as :

```auto
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/bin/kibana: No directory /usr/share/metricbeat/bin/kibana/default

```

-- For this case it seems kibana dir is present under /usr/share/metricbeat but it is looking at /usr/share/metricbeat/bin , so copy the kibana dir at bin folder and run the command again.

```auto
cp -r /usr/share/metricbeat/kibana /usr/share/metricbeat/bin/
[root@elk-cclab38 metricbeat]# pwd
/etc/metricbeat
[root@elk-cclab38 metricbeat]# /usr/share/metricbeat/bin/metricbeat setup --dashboards
Loaded dashboards
[root@elk-cclab38 metricbeat]#

```

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [January 25, 2018, 5:30pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753/3 "2018-01-25T17:30:17Z")

</div>

I think the commands you were looking for are in [Step 4: Set up the Kibana dashboards](https://www.elastic.co/guide/en/beats/metricbeat/6.1/load-kibana-dashboards.html).

The main difference from what you did is in the command. You executed:

`/usr/share/metricbeat/bin/metricbeat setup --dashboards`

but you should execute:

`metricbeat setup --dashboards`

By running just `metricbeat` your shell will find `/usr/bin/metricbeat` on the PATH. This configures the `-path.*` options correctly so you can run it from any directory.

---

<div class="post-metadata">

### Author: ![aymenJmal](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@aymenJmal](https://discuss.elastic.co/u/aymenJmal)
#### Post date: [January 31, 2018, 3:39pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753/4 "2018-01-31T15:39:53Z")

</div>

I added the setup.dashboards.enabled: true to my config file 'equivalent to command: /usr/share/metricbeat/bin/metricbeat setup --dashboards. Kibana dashboards successfully loaded but when i connect to kibana i can not find my data ? I have selected the right index mypattern-\*

Compared to normal method, I just modified setup.dashboards.index and output.elasticsearch: index.  
I added also a new template

setup.template.enabled: true  
[setup.template.name](http://setup.template.name): "mypattern"  
setup.template.pattern: "mypattern-\*"

thanks,

---

<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: [February 28, 2018, 3:40pm UTC](https://discuss.elastic.co/t/load-metricbeat-sample-dashboards-in-6-1-2/116753/5 "2018-02-28T15:40:11Z")

</div>

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