Splunk Core Certified Advanced Power User — Question 136
What will the following inputs.conf stanza do?
[script://myscript.sh]
interval=0
Answer options
- A. The script will run at the default interval of 60 seconds.
- B. The script will be run only once for each time Splunk is restarted.
- C. The script will be run. As soon as the script exits, Splunk restarts it.
- D. The script will not be run.
Correct answer: C
Explanation
The correct answer is C because setting the interval to 0 means that the script will run continuously, restarting immediately after it exits. Option A is incorrect as the default interval is overridden by the specified value. Option B is also wrong because the script will keep running rather than executing just once. Option D is incorrect since the script will execute, contrary to what D states.