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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...