All Apps and Add-ons

Sideview Utils: How to create a `chart count by field1, field2` table with drilldown

DennisMohn
Path Finder

I guess I'm again just missing the point somewhere ...

Currently I'm converting some legacy Simple XML Dashboards into more integrated Views with the help of the Sideview Utils Editor.

One of the views is a table with a chart drilldown. The table view shows the result of the base search sourcetype=livelog http_status=* | chart count by host,http_status resulting in a table showing all hosts as rows, the HTTP returncodes as columns, and the numbers in the cells. Clicking on one of the cells opens a line chart displaying the timechart of the respective host.

Now I want to replicate the same view in Sideview Utils.

<module name="Search" autoRun="True">
  <param name="preview">True</param>
  <param name="search">sourcetype=livelog http_status=* |  chart count by host,http_status</param>
  <param name="earliest">-30m@m</param>
  <param name="latest">@m</param>

  <module name="Table">
    <param name="fields">count,host,returncode</param>
  </module>

</module>

This setup only shows one row, listing all 5 hosts. Can someone point out my error?

1 Solution

sideview
SplunkTrust
SplunkTrust

You don't want that "fields" param there. Just remove it.

The fields going into your chart command are host and http_status, but the fields coming out are host and then "200", "404", "500" etc....

That fields param is telling your Table that you want to throw away all the fields and leave only "host" (which is actually there) and "count" and "returncode" which are not actually fields in the data.

View solution in original post

sideview
SplunkTrust
SplunkTrust

You don't want that "fields" param there. Just remove it.

The fields going into your chart command are host and http_status, but the fields coming out are host and then "200", "404", "500" etc....

That fields param is telling your Table that you want to throw away all the fields and leave only "host" (which is actually there) and "count" and "returncode" which are not actually fields in the data.

DennisMohn
Path Finder

Just as I thought ... Sometimes you're just blind for the obvious errors 🙂

Thanks a ton, that did it!

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...