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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...