# Visualization works, but not in dashboard

**URL:** <https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776>\
**Category:** Kibana\
**Created:** [May 5, 2017, 7:58pm UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776 "2017-05-05T19:58:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 5, 2017, 7:58pm UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/1 "2017-05-05T19:58:11Z")

</div>

I have a bunch of saved visualizations. I have dashboards that include them. The visualizations used to show up in the dashboards, but now they do not. I recently turned off \_all, which I suspect is related. In Discover, or when viewing the visualization, if I put 'source.keyword: "/whereever/G1gc.log"' in the search box then the data shows up. However, when I do this for the Dashboard that contains the same visualization I get nothing.

I am wondering if this is related to the query saved in the kibanaSavedObjectMeta for the visualization, which refers to \*, which is not going to get me any data without \_all. Any suggestions?

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 6, 2017, 2:01am UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/2 "2017-05-06T02:01:22Z")

</div>

Could you open your browser's Developer Console and check for any errors?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 6, 2017, 2:00pm UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/3 "2017-05-06T14:00:15Z")

</div>

No errors, a couple of INFO messages from kibana.bundle.js and some response time messages from commons.bundle.js

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 9, 2017, 10:20am UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/4 "2017-05-09T10:20:51Z")

</div>

Okay, a couple more follow up questions, please:

1. Which version of Kibana are you using?

> In Discover, or when viewing the visualization, if I put 'source.keyword: "/whereever/G1gc.log"' in the search box then the data shows up.

1. So no data shows up in Discover if you leave the search box as `*`? And this was working before you turned off `_all` in Elasticsearch? If so, when you disabled the `_all` field in Elasticsearch, did you also setup a `index.query.default_field` in your index settings, as shown in [Mapping | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-all-field.html#disabling-all-field)?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 9, 2017, 4:29pm UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/5 "2017-05-09T16:29:34Z")

</div>

I think I initially found it in 5.3.1 I think, then 5.3.2. I am now on 5.4.

Correct, \* got you no data. The default query field was set to @message, but I delete that field if I parse all the fields out successfully.

I moved the garbage collections stats into their own index, with the default query field being source. I rebuilt the visualization in 5.4 and it now displays correctly in the dashboard with either a blank filter or \*, or 'source: "/whereever/G1gc.log"' or "/whereever/G1gc.log"

---

<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:** [June 6, 2017, 4:31pm UTC](https://discuss.elastic.co/t/visualization-works-but-not-in-dashboard/84776/6 "2017-06-06T16:31:42Z")

</div>

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