Dashboards & Visualizations

Dashboard - REST API with Token

rashi83
Path Finder

Hi ,

I am trying to create a dashboard like this - which has a text box to search for title ( index name) .

How do I put this title token in my search ?

======================================================================================================

Index List
Index Search

<input type="text" token="title">
  <label>Search</label>
</input>


<panel>
  <table>
    <search>
      <query>|rest /services/data/indexes | dedup title | table title updated splunk_server</query>
      <earliest>@d</earliest>
      <latest>now</latest>
      <sampleRatio>1</sampleRatio>
    </search>
    <option name="count">100</option>
    <option name="dataOverlayMode">none</option>
    <option name="drilldown">cell</option>
    <option name="percentagesRow">false</option>
    <option name="rowNumbers">true</option>
    <option name="totalsRow">false</option>
    <option name="wrap">true</option>
  </table>
</panel>

=====================================================================================================

0 Karma

jkat54
SplunkTrust
SplunkTrust

Add this to the search at the end

| search title=*$title$*
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...