Splunk Search

About autorun option in fieldset

tkdguq0110
Path Finder

here's my code

<fieldset submitButton="true" autoRun="false">
<input type="text" token="field1">
</fieldset>

I want to unchange the value that I rewrite automatically.
someone said, I need to put this option, searchWhenChange="false"
my wondering is what is the meaning of autoRun="false"
It's the same result value if I write autoRun="true" and also autoRun="false"
Thanks

Tags (2)
1 Solution

vnravikumar
Champion

Hi

Check this sample, when autoRun=ture, without clicking, submit button result get loaded. modify autoRun in this example and see the difference.

<form>
  <label>multiselect</label>
  <fieldset submitButton="true" autoRun="true">
    <input type="multiselect" token="field1" searchWhenChanged="false">
      <label>field1</label>
      <valuePrefix>method="</valuePrefix>
      <delimiter> OR </delimiter>
      <valueSuffix>"</valueSuffix>
      <fieldForLabel>method</fieldForLabel>
      <fieldForValue>method</fieldForValue>
      <search>
        <query>index="_internal" sourcetype=splunkd_ui_access |stats count by method</query>
      </search>
      <choice value="*">All</choice>
      <default>*</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index="_internal" $field1$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>

View solution in original post

vnravikumar
Champion

Hi

Check this sample, when autoRun=ture, without clicking, submit button result get loaded. modify autoRun in this example and see the difference.

<form>
  <label>multiselect</label>
  <fieldset submitButton="true" autoRun="true">
    <input type="multiselect" token="field1" searchWhenChanged="false">
      <label>field1</label>
      <valuePrefix>method="</valuePrefix>
      <delimiter> OR </delimiter>
      <valueSuffix>"</valueSuffix>
      <fieldForLabel>method</fieldForLabel>
      <fieldForValue>method</fieldForValue>
      <search>
        <query>index="_internal" sourcetype=splunkd_ui_access |stats count by method</query>
      </search>
      <choice value="*">All</choice>
      <default>*</default>
    </input>
  </fieldset>
  <row>
    <panel>
      <table>
        <search>
          <query>index="_internal" $field1$</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</form>

tkdguq0110
Path Finder

Thanks for your example.
All things is clear.!!
you are genious!

0 Karma

vnravikumar
Champion

If it helps you, please accept.

0 Karma

vnravikumar
Champion

Hi

When autoRun= true, means the search runs as soon as it is loaded.

0 Karma

tkdguq0110
Path Finder

loaded means like refresh a dashboard?
But, I wrote autoRun="false", dashboard loaded well automatically

0 Karma

vnravikumar
Champion

Search will run automatically at the time of page load with all the tokens

tkdguq0110
Path Finder

sorry, I do not understand.
you said that "When autoRun= true, means the search runs as soon as it is loaded."
it is loaded, what is "IT"? dashboard?

0 Karma

tkdguq0110
Path Finder

sorry man, I do not understand clearly.
When autoRun= true, means the search runs as soon as it is loaded.
Could you give me an example?

0 Karma

vnravikumar
Champion

yes, dashboard.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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