Dashboards & Visualizations

Edit Form/Dashboard XML manually , Splunk does not refresh unless XML edited through GUI

DanMurad
Explorer

It seems I can't edit dashboard and form XML's using my own editor. Upon saving, Splunk does not refresh (probably because it reads from DB cache instead of file?), how can I force it to read the file every time it changes because I'd like to use my own IDE instead of the splunk xml editor.

Thanks,

Tags (3)

stevewillson
New Member

Restarting with 

 

 

http://debug/refresh

 

 

 worked when editing files outside of Splunk Enterprise 8.0.6.

 

If I edit the file directly in (\default\data\ui\views\) and then click on the App in the upper left corner of the screen under 'Apps', the display content for the modified file is not updated.

Confirming what @DanMurad posted.

 

0 Karma

devicenul1
Path Finder

Yes, I tried both the reload all objects and just views ... the views one doesn't work, the all objects one will sometimes work.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

Did you try the reload endpoint as listed below? After doing this reload, we need to refresh the dashboard page.

http://:/debug/refresh

0 Karma

devicenul1
Path Finder

I'm having this exact same problem with Version 6.1.1 ... Any other ideas here, I've tried everything listed but it will not refresh custom dashboards. Doing a ?showsource=1 shows the out of date code.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

You can reload these from disk using the following endpoint(s).

To reload all objects:
http://:/debug/refresh

To reload views only:
http://:/debug/refresh?entity=%2Fdata%2Fui%2Fnav&entity=%2Fdata%2Fui%2Fviews

Ayn
Legend

All views in the app are refreshed when you access the app's start URL ( .../apps/yourapp ). You can just click the app logo at the top left corner in your app in splunkweb to achieve the same thing.

Ayn
Legend

That is exactly what I mean. The methods I describe work perfectly for refreshing on the Dplunk instances I've used.

0 Karma

DanMurad
Explorer

This is incorrect. It does not refresh. I hope you understand when I say edit the xml I mean editing the file /opt/splunk/etc/apps//local/data/ui/views/.xml

0 Karma

DanMurad
Explorer

It would have been tolerable if Save button didn't exit everytime making you find and click the view name again to edit it.

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...