Dashboards & Visualizations

Can dashboard creation be automated?

rachelnarios
New Member

I would like to clone an existing dashboard automatically every time I upload a new file with a specific prefix (E.G: File-xx). The only element that would change in the dashboard code would be the search file name. Is there a way to do so?

0 Karma

bowesmana
SplunkTrust
SplunkTrust

cron with sed -i if running on unix? May not be what you're after and may not be responsive enough, but would also need to know what 'new' means in that context. (timestamp vs xx number)

0 Karma

aberkow
Builder

Are you looking to do this in a source controlled manner? If so, you could source control the file mentioned in this answer https://answers.splunk.com/answers/445179/dashboard-xml-file-does-not-exist.html, and automatically insert a new template with that parameter passed through. I wouldn't suggest tampering with this file without source control, as you might delete everything 😧

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...