nerdexam
Splunk

SPLK-1003 · Question #162

What will the following inputs. conf stanza do? [script://myscript . sh] Interval=0

The correct answer is C. The script will be run only once for each time Splunk is restarted. The inputs.conf file is used to configure inputs, distributed inputs such as forwarders, and file system monitoring in Splunk. The [script://myscript.sh] stanza specifies a script input, which means that Splunk runs the script and indexes its output. The interval setting…

Configuration Files

Question

What will the following inputs. conf stanza do? [script://myscript . sh] Interval=0

Options

  • AThe script will run at the default interval of 60 seconds.
  • BThe script will not be run.
  • CThe script will be run only once for each time Splunk is restarted.
  • DThe script will be run. As soon as the script exits, Splunk restarts it.

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    91% (42)
  • D
    2% (1)

Explanation

The inputs.conf file is used to configure inputs, distributed inputs such as forwarders, and file system monitoring in Splunk. The [script://myscript.sh] stanza specifies a script input, which means that Splunk runs the script and indexes its output. The interval setting determines how often Splunk runs the script. If the interval is set to 0, the script runs only once when Splunk starts up. If the interval is omitted, the script runs at the default interval of 60 seconds.

Topics

#inputs.conf#scripted input#Interval=0#configuration

Community Discussion

No community discussion yet for this question.

Full SPLK-1003 Practice