Dashboards & Visualizations

Use Renamed Fields in Dashboard Drilldown to Form

Yorokobi
SplunkTrust
SplunkTrust

Is there a way to use a renamed field as part of the $row.fieldname$ variable?

Take the following single panel dashboard:

<dashboard>
    <label>Temp</label>
    <row>
      <table>
        <searchString>index=temp | stats count by application_id application_name environment log_type log_level | sort -count</searchString>
        <earliestTime>-24h@h</earliestTime>
        <drilldown>
          <link>/app/search/temp2?form.app_id=$row.application_id$</link>
        </drilldown>
      </table>
    </row>
  </dashboard>

Which links to a similar single panel dashboard:

<form>
    <label>Temp2</label>
     <fieldset autoRun="true">
   <input type="text" token="app_id">
  <label>Enter an Application ID:</label>
  <default>*</default>
  </input>
  </fieldset>
    <row>
      <table>
        <searchString>index=temp application_id=$app_id$ | stats count by application_id application_name environment log_type log_level | sort -count</searchString>
        <earliestTime>-24h@h</earliestTime>
      </table>
    </row>
  </form>

However, if I change the first dashboard's search to include | rename application_id AS "Application ID" so the dashboard table has better visual appeal, I cannot use $row.application_id$; the value to pass to the second dashboard has changed to "Application ID" and $row."Application ID"$ does not work, either. Is there a way to have the table for the first dashboard use renamed fields but still pass the row's application_id with $row.fieldname$ or similar?

Using Simple XML and Splunk 6.0.1

Tags (2)
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Instead of using $row."Application ID"$ , directly use $row.Application ID$. This works fine

View solution in original post

somesoni2
SplunkTrust
SplunkTrust

Instead of using $row."Application ID"$ , directly use $row.Application ID$. This works fine

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...