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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...