Dashboards & Visualizations

Using variables in XML title field in dashboard

jcbrendsel
Path Finder

Hi,

My dashboards generally describe the events that happened during a defined time period. However, this period varies across data sets, panels, and applications.

THus, I would like to have the title show the time range that was used for a particular dashbaord panel.

I have tried simple things like passing in the $variable$ format to no avail.

Is there a way to do this?

Thanks.

Jon.

Tags (3)

thall79
Communicator

I use ResultsHeader module after a HiddenSearch module in my advance XML dashboards which will display the following:

123 results in the last 60 minutes (from 2:28:00 PM to 3:28:50 PM on Wednesday, April 20, 2011)

in your dashboard.

Example of the module in my XML:

                <module name="ResultsHeader">
                  <param name="entityLabel">results</param>
                  <param name="entityName">results</param>

Then make sure to close it out.

Another option you could play with is SimpleResultsHeader, specially when working with drilldowns:

     <module name="SimpleResultsHeader">
          <param name="entityName">results</param>
          <param name="headerFormat">$time$</param>
     </module><!-- SimpleResultsTable-->

Link with more info:
http://www.splunk.com/base/Documentation/4.2.1/Developer/ModuleReference#ResultsHeader

Hope this helps

Travis.

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...