Dashboards & Visualizations

token

lorscardala985
Explorer

"I need help with this XML for a dashboard; essentially, I need to call a token that modifies data within a report, having already created the token with the name 'data.' How can I do this?"

 

<form version="1.1">
  <label>Lista IP da bloccare</label>
  <fieldset submitButton="true" autoRun="false">
    <input type="time" token="data">
      <label></label>
      <default>
        <earliest>rt-24h</earliest>
        <latest>rt</latest>
      </default>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search ref="checkpoint1"></search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>

Labels (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

you don't say how you want to use that token. Without that information we cannot directly tell it to you!

You could found from https://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens how to use tokens in dashboards.

I'm not sure if you try to use token on that report (checkpoint1) or not? Unfortunately you cannot use tokens in other places than this dashboards or other output links/dashboards.

One app which you should install and use when you are developing dashboards with tokens is https://splunkbase.splunk.com/app/1603. With it you can automatically see what tokens you have defined and what values those have.

r. Ismo 

0 Karma

lorscardala985
Explorer

I'm not sure if I was unclear, but anyway, I wanted to use the token to change, if possible, the data reported by a search that is saved as a report.

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Yes you said that you want to use it to modify a report, but you didn't define how it should modify.
Basically add normal SPL after your report and use token with $data$ how ever you want to use it.
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...