top of page

Creating dashboards in Splunk

1 day ago
2 min read

Creating dashboards is one of the most common tasks in Splunk. Used to highlight the information collected and processed with Splunk, dashboards can be a powerful tool, or a way to weigh down the environment and create unnecessary work. We can discuss this in more depth later, especially regarding user experience, but in this post we will cover the main ways to create dashboards.


The list of an app's dashboards in Splunk is usually in the "Dashboards" menu, where you can also create new dashboards:



This may not be the most common way to create dashboards, since they are usually created after running a query. When you analyze the data with SPL and reach a useful result, you can edit the display options in the "Visualization" menu. There you can choose the visualization type and make some customizations according to the chosen chart type:

Once you have the result you want, you can save this visualization to a dashboard with the "Save as" option, choosing "Dashboard Panel":



In the first part, fill in the information for the new dashboard. Here we enter a name that will be shown on the dashboard screen and an ID that identifies the code that builds this dashboard in the system. Next, fill in the information about the chart that will be plotted. I recommend an intuitive name and description to make things easier for everyone who uses the dashboard.


After saving, you can go straight to the dashboard. It can also be opened from the Dashboards menu mentioned earlier.


You can now add new panels to the same dashboard, either by running a search and saving it to the same dashboard (just pick its name in the list of dashboards) or by editing directly on the dashboard screen, as shown in the images below.

As you can see, the panel type is selected first, and then a new search needs to be applied to load the information. In this case you need to already know your data.


Finally, on this same edit screen we can edit the XML code behind the dashboard.


We can fully edit our dashboard from this XML code, and also include HTML and JavaScript code.


In the post Creating dashboards in Splunk - Understanding the XML, we go through the XML structure of a dashboard in detail.



Want to practice? Try the free We Challenge sample, with Splunk questions and explanations.

To start from scratch, see the Introduction to Splunk course on Udemy (in Portuguese). For your team, see WeValuate's Splunk training.


Questions about the post? Content suggestions? Corrections? Criticism or praise?

Please contact us at wevaluatebr@gmail.com and we will reply as soon as possible.


If you liked it, share this post on your social networks and help us spread the word!



Comments


bottom of page