exam questions

Exam SPLK-1003 All Questions

View all questions & answers for the SPLK-1003 exam

Exam SPLK-1003 topic 1 question 145 discussion

Actual exam question from Splunk's SPLK-1003
Question #: 145
Topic #: 1
[All SPLK-1003 Questions]

What will the following inputs.conf stanza do?

[script://myscript.sh]
interval=0

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
FrozenYeti
1 week, 4 days ago
Selected Answer: C
The answer is C. Setting interval=0 in Splunk's inputs.conf file means the script will keep running continuously. As soon as the script finishes executing, Splunk will immediately restart it.
upvoted 1 times
...
tje210
2 weeks ago
Selected Answer: B
Interval = 0 means it runs upon adding the input, and then each time the server is restarted.
upvoted 1 times
...
NastyNutsu
2 weeks, 5 days ago
Selected Answer: C
the interval setting specifiels the time, in seconds, between runs of the script. Setting interval=0 in Splunk's inputs.conf file means the script will keep running continuously. As soon as the script finishes executing, Splunk will immediately restart it.
upvoted 1 times
...
shesky17
2 months, 3 weeks ago
C. See scripted input: https://docs.splunk.com/Documentation/Splunk/9.2.1/Admin/Inputsconf [script://<cmd>] interval = [<decimal>|<cron schedule>] * The special value "0" forces this scripted input to be run continuously. As soon as the script exits, the input restarts it. * The special value "-1" causes the scripted input to run once on start-up. * NOTE: when you specify a cron schedule, the input does not run the script on start-up. * Default: 60.0
upvoted 4 times
...
Frank_Rai
3 months, 4 weeks ago
Should be B. By setting 'interval=0', you're instructing Splunk to execute the script a single time at the startup of the Splunk service. After the initial execution, Splunk will not run the script again unless the service is restarted.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago