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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...