Dashboards & Visualizations

advanced xml syntax for a table of data, not a chart?

dang
Path Finder

I've been playing around with advanced xml to create a view with a time picker. I have figured out what I need to do to add charts of data, but how do I add a table of information from a search that uses a chart?

Tags (1)

David
Splunk Employee
Splunk Employee

The easiest way to figure this out is to steal it from something already existing. For example, you can look at http://YourInstance:8000/en-US/app/search/search_status?showsource=1

If you scroll down to Common Searches, you'll see the following syntax:

<module name="SimpleResultsTable">
  <param name="drilldown">row</param>
  <param name="allowTransformedFieldSelect">True</param>
  <module name="ConvertToDrilldownSearch">
    <module name="ViewRedirector">
      <param name="viewTarget">flashtimeline</param>
    </module>
  </module>
</module>

Which should get you what you're looking for.

David
Splunk Employee
Splunk Employee

Excellent. Check out this Answers as well, for tips on clearing out the showsource=1 unnecessary things. (Like allowTransformedFieldSelect)

http://splunk-base.splunk.com/answers/11844/schedule-pdf-disabled-for-timerangepicker

0 Karma

dang
Path Finder

The ?showsource=1 tip was very useful, and I've now got it working. Thanks.

0 Karma

dang
Path Finder

So, If I'm currently using to generated the data that would normally be displayed in a chart, would that also be used with this drilldown parameter?

0 Karma

sideview
SplunkTrust
SplunkTrust

It's extremely unlikely that you want that 'allowTransformedFieldSelect' param in there - that's detritus carried over from some long-ago simplified-xml conversion.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...