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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...