exam questions

Exam SPLK-1003 All Questions

View all questions & answers for the SPLK-1003 exam

Exam SPLK-1003 topic 1 question 111 discussion

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

A log file contains 193 days worth of timestamped events. Which monitor stanza would be used to collect data 45 days old and newer from that log file?

  • A. followTail = -45d
  • B. ignore = 45d
  • C. includeNewerThan = 45d
  • D. ignoreOlderThan = 45d
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
NastyNutsu
1 month ago
Selected Answer: D
the answer is D. A is wrong because followTail does not accept negative values or date range
upvoted 1 times
...
varmaTrainer
5 months, 4 weeks ago
Selected Answer: D
https://docs.splunk.com/Documentation/Splunk/9.3.0/Data/Monitorfilesanddirectorieswithinputs.conf ignoreOlderThan = <time_window>
upvoted 1 times
...
Frank_Rai
10 months, 2 weeks ago
D. The correct monitor stanza to collect data that is 45 days old and newer from a log file in Splunk is: D. `ignoreOlderThan = 45d` This configuration setting in the `inputs.conf` file tells Splunk to ignore any events in the monitored file that are older than 45 days from the current time. As a result, Splunk will only index events that are newer than 45 days, which is the desired behavior in this scenario.
upvoted 1 times
...
PrincePazol
1 year ago
Selected Answer: D
ignoreOlderThan = <non-negative integer>[s|m|h|d] * The monitor input compares the modification time on files it encounters with the current time. If the time elapsed since the modification time is greater than the value in this setting, Splunk software puts the file on the ignore list. * Valid units are "d" (days), "h" (hours), "m" (minutes), and "s" (seconds).
upvoted 1 times
...
random0352
2 years ago
Selected Answer: D
The answer is D. followTail needs to be a boolean as mentioned by others here.
upvoted 1 times
...
Rinkans
2 years, 2 months ago
Answer is D
upvoted 1 times
...
shergar
2 years, 2 months ago
Both A and D are wrong tbh, but I guess D is less wrong than A (followTail needs to be set to true or false), whereas D applies to files in a directory, not events in a file itself.
upvoted 1 times
...
G4ct756
2 years, 4 months ago
Selected Answer: D
Ans: likely D, due to syntax error in A. for A, followTail is a setting is boolean, thus its either 1 or 0; true of false. for D, although as some pointed out ignoreOlderThan uses file mod-time to filter out events, thus read directory of files not stand-alone log file. However, the syntax is correct.
upvoted 2 times
...
spicy7733
2 years, 6 months ago
Anser is A. We use ignoreOlderThan for directories will lots of old files. Single file with 193 entries needs followTail
upvoted 2 times
...
Floyda
2 years, 6 months ago
Selected Answer: A
Answer is A. D applies to multiple files. Question is about single file, so the limit must be applied based on extracted _time field, not last time a file was modified.
upvoted 2 times
...
Floyda
2 years, 6 months ago
Answer is A. D applies to multiple files. Question is about single file, so the limit must be applied based on extracted _time field, not last time a file was modified.
upvoted 1 times
NastyNutsu
1 month ago
followTrail does not accept negative values or specify date range...
upvoted 1 times
...
...
furiousjase
3 years, 5 months ago
Answer is D Page 77 Splunk Enterprise System Administration
upvoted 3 times
ucsdmiami2020
3 years, 4 months ago
Using the Splunk Community portal URL reference https://community.splunk.com/t5/Getting-Data-In/ignoreOlderThan-in-inputs-conf/m-p/358307 "When a monitoring is setup with ignoreOlderThan attribute, it'll exclude all the files which were last modified earlier than the set value."
upvoted 1 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