Dashboards & Visualizations

How to create a new dashboard via the command line interface (CLI)?

aniello_cerrato
Path Finder

Hi,

I have the below requirements to implement:

1 - I have a dashboard with some filters
2 - I set the value in the filter
3 - Click on a button to create a new dashboard clone of first dashboard with filters filled with value of step 2

Have you any ideas how to implement this?

Thanks,
Nello

0 Karma

woodcock
Esteemed Legend

You could look at the multiplexer capability of the SideView Utils:

http://sideviewapps.com/apps/sideview-utils/

0 Karma

ehudb
Contributor

You would have to write a python script that will copy the dashboard xml file while changing the desired default values within the xml.
Then you can implement the python script as a splunk custom command, and use that in the first dashboard.

Docs:
https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Writeasearchcommand

Examples (slightly old):
http://dev.splunk.com/view/python-sdk/SP-CAAAEU2
http://blogs.splunk.com/2014/04/14/building-custom-search-commands-in-python-part-i-a-simple-generat...

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...