# Reload visualization from the Elasticsearch

**URL:** <https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766>\
**Category:** Kibana\
**Created:** [April 13, 2020, 11:24am UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766 "2020-04-13T11:24:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitediver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whitediver/32/53736_2.png) [@whitediver](https://discuss.elastic.co/u/whitediver)\
**Post date:** [April 13, 2020, 11:24am UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766/1 "2020-04-13T11:24:45Z")

</div>

I manage my visualizations using a custom plugin.  
I set visualisation.visState.aggs from template

Then I update the visualization at the ".kibana" index Kibana application do not reload it till restart.

Is there a way to force reload visualization details or restart the Kibana server from the controller?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [April 13, 2020, 5:22pm UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766/2 "2020-04-13T17:22:16Z")

</div>

@jbudz can u plz shed some light here?

Thanks  
Rashmi

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [April 13, 2020, 5:46pm UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766/3 "2020-04-13T17:46:42Z")

</div>

Hey - there's some dependencies here on your version. Older versions of Kibana will put you entirely in angular, and newer versions will wrap you in react, and newer yet will be angular wrapped in react wrapped in a new platform api :).

A good starting point for current versions of Kibana is [How to update the state/props of a custom visualisation component after the initial render?](https://discuss.elastic.co/t/how-to-update-the-state-props-of-a-custom-visualisation-component-after-the-initial-render/181242).

On the other hand, if you just need to hack together something that works `window.refresh()` should do. If you want to avoid the whole page refresh, parsing + updating the rison in windows.hash should work too. It's not recommended, but if you need a quick fix.

Restarting the Kibana server and/or dynamically updating kibana.yml isn't something we're doing currently for security reasons. Possibly some settings in the future with protections in place, but nothing ATM.

---

<div class="post-metadata">

**Author:** ![whitediver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whitediver/32/53736_2.png) [@whitediver](https://discuss.elastic.co/u/whitediver)\
**Post date:** [April 13, 2020, 9:52pm UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766/4 "2020-04-13T21:52:22Z")

</div>

@jbudz actually I do not update data from the frontend.  
It`s completely insecure and silly.

From the frontend, I send the request to the Kibana server plugin  
Then I update the document at the .kibana index  
I use `request.server.plugins.elasticsearch.getCluster('data')` to update data.  
But, then I changed the data and reload visualization page I have not seen my changes.  
I saw the changes only after Kibana restart

---

<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 11, 2020, 9:52pm UTC](https://discuss.elastic.co/t/reload-visualization-from-the-elasticsearch/227766/5 "2020-05-11T21:52:32Z")

</div>

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