Dashboards & Visualizations

Dynamically Changing the Content / Chart in the panel

rakesh_498115
Motivator

Hi

I have a created a panel ..I need to change the contents of the panel basing on the user's selection . how can i do that ? . ie In the same panel the content of of display (chart to be displayed ) should change dynamically.

Thanks

Tags (2)
0 Karma
1 Solution

OL
Communicator

Hi,

Not sure that I fully understand your question, but I will try to give an answer.

  1. Possible answer: What you might need is to create simple form (http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step1CreateAForm). With a drop down, you can change the content of the whole page. You can use the advanced XML as well if you are looking for more complex stuff, but I would suggest to stick with simplified XML if you are a beginner.
  2. Other possible answer: If you mean, when you click on a graph, it changes the content of another graph, you might need to use the customise drilldown option (http://docs.splunk.com/Documentation/Splunk/latest/Developer/TableChartDrilldown). This is much more complex but does really nice stuff.

Feel free to use available example apps such as http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41 to see what you can do, then have a look at the source xml to understand how it has been done.

Hope this helps.

Regards,
Olivier

View solution in original post

john
Communicator

Hi rakesh,

My suggestion is try to use ConditionalSwitcher module.Using this module you could able to switch your dashboard panels on user input.

0 Karma

OL
Communicator

Hi,

Not sure that I fully understand your question, but I will try to give an answer.

  1. Possible answer: What you might need is to create simple form (http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step1CreateAForm). With a drop down, you can change the content of the whole page. You can use the advanced XML as well if you are looking for more complex stuff, but I would suggest to stick with simplified XML if you are a beginner.
  2. Other possible answer: If you mean, when you click on a graph, it changes the content of another graph, you might need to use the customise drilldown option (http://docs.splunk.com/Documentation/Splunk/latest/Developer/TableChartDrilldown). This is much more complex but does really nice stuff.

Feel free to use available example apps such as http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41 to see what you can do, then have a look at the source xml to understand how it has been done.

Hope this helps.

Regards,
Olivier

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...