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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...