Dashboards & Visualizations

How to Preset Search Results in Dashboard Text

nanachu
Path Finder

Hi all,

I want to preset Search Results in Dashboard Text.

If I want to change name, can change name.

search string

|rest /services/authentication/current-context 

text source

<input type="text" token="name">
<label>username</label>
<default>$result.username$</default>
</input>

If I want to preset search results in text, What should I do?

Thank you for hepling me.

0 Karma
1 Solution

vnravikumar
Champion

Hi

Check this

<form>
  <label>temp</label>
  <search>
    <query>
      |rest /services/authentication/current-context
    </query>
    <done>
      <set token="form.username">$result.username$</set>
    </done>
  </search>
  <fieldset submitButton="false">
    <input type="text" token="username">
      <label>username</label>
    </input>
  </fieldset>
</form>

View solution in original post

0 Karma

vnravikumar
Champion

Hi

Check this

<form>
  <label>temp</label>
  <search>
    <query>
      |rest /services/authentication/current-context
    </query>
    <done>
      <set token="form.username">$result.username$</set>
    </done>
  </search>
  <fieldset submitButton="false">
    <input type="text" token="username">
      <label>username</label>
    </input>
  </fieldset>
</form>
0 Karma

nanachu
Path Finder

Thank you for helping me.
I did <fieldset submitButton="true">
So, it does not work well. it is my mistake.
Thank you so much.

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...