SPLK-1003 Exam QuestionsBrowse all questions from this exam

SPLK-1003 Exam - Question 111


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?

Show Answer
Correct Answer: D

To collect data from a log file that is 45 days old and newer, the correct monitor stanza in Splunk is 'ignoreOlderThan = 45d'. This configuration ensures that any data older than 45 days is ignored, thereby collecting only the events within the last 45 days. This setting is commonly used to filter out older data based on the file modification time and is specified in days with the 'd' suffix.

Discussion

10 comments
Sign in to comment
furiousjaseOption: D
Sep 15, 2021

Answer is D Page 77 Splunk Enterprise System Administration

ucsdmiami2020
Sep 27, 2021

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."

FloydaOption: A
Aug 3, 2022

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.

spicy7733Option: A
Aug 16, 2022

Anser is A. We use ignoreOlderThan for directories will lots of old files. Single file with 193 entries needs followTail

G4ct756Option: D
Oct 9, 2022

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.

FloydaOption: A
Aug 3, 2022

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.

shergarOption: D
Dec 1, 2022

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.

RinkansOption: D
Dec 11, 2022

Answer is D

random0352Option: D
Feb 1, 2023

The answer is D. followTail needs to be a boolean as mentioned by others here.

PrincePazolOption: D
Feb 1, 2024

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).

Frank_RaiOption: D
Apr 9, 2024

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.