Dashboards & Visualizations

Filter on saved report

chrispappo
Explorer

Hi,

I created a report using the "setting -> Searches, reports, and alerts" menu. The name of the search is cptyinfo and it runs every 5 min.
i display the search in a dashboard like this

<table>
<title>Report Chart</title>
<search ref="cptyinfo"/> 
</table>

I was wondering if there is anyway to filter (using a token) on the column of this report ? (without recalculate anything)

Something like that:

<table>
<title>Report Chart</title>
<search ref="cptyinfo"> | where id=$id$ </search> 
 </table>

Thanks

Tags (3)
0 Karma

chrispappo
Explorer

Hi,

I find the solution

  <search id="components_search" ref="cptyinfo" />
<table>
      <title>Report Chart</title>
     <search base="components_search">
        <query>search fieldFromReport=$token$ </query> 
      </search>
</table>

works perfect !

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