# Importing by hand the search / visualization / dashboard of metricbeats in Kibana 5.5.0

**URL:** <https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911>\
**Category:** Beats\
**Created:** [April 5, 2018, 11:55am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911 "2018-04-05T11:55:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DidierB](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Post date:** [April 5, 2018, 11:55am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/1 "2018-04-05T11:55:30Z")

</div>

Hello,

I am generating a lot of metricbeats that go through some intermediates systems which means the events can reach the Elasticsearch but the import of example dashboard will fail.

However, from the metricbeats archive, I was able to get the search / visualization / dashboards of the metric beats. I tried to import the Search first, like System-stats.json, after changing the index name so the file looks like this:

```
{
  "sort": [
    "@timestamp", 
    "desc"
  ], 
  "hits": 0, 
  "description": "", 
  "title": "System stats", 
  "version": 1, 
  "kibanaSavedObjectMeta": {
    "searchSourceJSON": "{\"index\":\"my_index_pattern_*\",\"filter\":[],\"highlight\":{\"pre_tags\":[\"@kibana-highlighted-field@\"],\"post_tags\":[\"@/kibana-highlighted-field@\"],\"fields\":{\"*\":{}},\"require_field_match\":false,\"fragment_size\":2147483647},\"query\":{\"query_string\":{\"query\":\"metricset.module: system\",\"analyze_wildcard\":true}}}"
  }, 
  "columns": [
    "_source"
  ]
}

```

but the import of this file fails with:

> Saved Objects: Saved objects file format is invalid and cannot be imported.

Does anyone can help me?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 5, 2018, 6:16pm UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/2 "2018-04-05T18:16:44Z")

</div>

Import of dashboards doesn't need to be done from the machines where metricbeat is collecting metrics, you can [import the dashboards](https://www.elastic.co/guide/en/beats/metricbeat/5.5/metricbeat-sample-dashboards.html) from other machine that can reach Elasticsearch.

---

<div class="post-metadata">

**Author:** ![DidierB](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Post date:** [April 11, 2018, 8:09am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/3 "2018-04-11T08:09:54Z")

</div>

Well, it's complicated. I'm using an ES 5.5.0 but I collect metrics from a source with metricbeats 6.3.2. So the metricbeats 5.5.0 dashboards are not compatible. I also tried to use metricbeats 6.3.2 to setup the dashboard "by the Kibana API" however it requires nonetheless Elasticsearch API to do the setup. If I provide a fake ES so the metricbeats setup proceed, it seems to not work, while outputing a normal and ending setup messages (but no line about dashboard installation work).

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 11, 2018, 9:04am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/4 "2018-04-11T09:04:36Z")

</div>

With "by the Kibana API" do you mean with `metricbeat setup --dashboards`?

---

<div class="post-metadata">

**Author:** ![DidierB](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Post date:** [April 11, 2018, 9:05am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/5 "2018-04-11T09:05:57Z")

</div>

Well, I just made a setup without --dashboard. I found [this](https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field-visualize-field-is-a-required-parameter/70034/27) that looks a lot like my issue, but I don't understand in fine which of the solution was the real one!

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 11, 2018, 9:20am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/6 "2018-04-11T09:20:58Z")

</div>

Please try to run the setup of dashboards with the `--dashboard` flag.

If you are also having these errors about fields, what this post mentions is to try to [reload the index fields list](https://www.elastic.co/guide/en/kibana/current/index-patterns.html#reload-fields).

---

<div class="post-metadata">

**Author:** ![DidierB](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@DidierB](https://discuss.elastic.co/u/DidierB)\
**Post date:** [April 11, 2018, 9:44am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/7 "2018-04-11T09:44:14Z")

</div>

Retried, same probelm, updated fileds, same problem. In the dashboard I have visualizations that are filled with data, and other they are not. In the spy window of Kibana we see that some visualizations have empty body in the requests, like in the problem I linked in my previous message.

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 11, 2018, 11:44am UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/8 "2018-04-11T11:44:36Z")

</div>

With what dashboards are you having problems, and what version of Kibana are you using?

---

<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:** [May 9, 2018, 1:44pm UTC](https://discuss.elastic.co/t/importing-by-hand-the-search-visualization-dashboard-of-metricbeats-in-kibana-5-5-0/126911/9 "2018-05-09T13:44:46Z")

</div>

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