BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk Exam SPLK-1003 Topic 10 Question 101 Discussion

Actual exam question for Splunk's SPLK-1003 exam
Question #: 101
Topic #: 10
[All SPLK-1003 Questions]

A security team needs to ingest a static file for a specific incident. The log file has not been collected previously and future updates to the file must not be indexed.

Which command would meet these needs?

Show Suggested Answer Hide Answer
Suggested Answer: A

The correct answer is A. splunk add one shot / opt/ incident [data . log ---index incident

According to the Splunk documentation1, the splunk add one shot command adds a single file or directory to the Splunk index and then stops monitoring it. This is useful for ingesting static files that do not change or update. The command takes the following syntax:

splunk add one shot <file> -index <index_name>

The file parameter specifies the path to the file or directory to be indexed. The index parameter specifies the name of the index where the data will be stored. If the index does not exist, Splunk will create it automatically.

Option B is incorrect because the splunk edit monitor command modifies an existing monitor input, which is used for ingesting files or directories that change or update over time. This command does not create a new monitor input, nor does it stop monitoring after indexing.

Option C is incorrect because the splunk add monitor command creates a new monitor input, which is also used for ingesting files or directories that change or update over time. This command does not stop monitoring after indexing.

Option D is incorrect because the splunk edit oneshot command does not exist. There is no such command in the Splunk CLI.


Contribute your Thoughts:

Delmy
1 months ago
I'm not sure, but I think option B could also work because it mentions monitoring the file.
upvoted 0 times
...
Samuel
1 months ago
Haha, I bet the person who came up with option D was having a bit too much fun with the question. But C looks like the clear winner here.
upvoted 0 times
Fabiola
15 days ago
Definitely, option C is the way to go for ingesting the static file.
upvoted 0 times
...
Annelle
20 days ago
I think we can safely go with option C for this scenario.
upvoted 0 times
...
Evan
30 days ago
Yeah, option D does seem a bit off, haha.
upvoted 0 times
...
Jennifer
1 months ago
I agree, option C seems like the most appropriate choice.
upvoted 0 times
...
...
Carry
2 months ago
I agree with Charlene, option C seems like the correct command.
upvoted 0 times
...
Sunshine
2 months ago
Option A seems a bit too specific, and D doesn't have the right syntax. I'm going with C as well.
upvoted 0 times
Rene
30 days ago
Let's go with C to ensure the file is ingested correctly without future updates being indexed.
upvoted 0 times
...
Rasheeda
1 months ago
I agree, C seems like the best option for this scenario.
upvoted 0 times
...
Delfina
1 months ago
I think C is the correct command for ingesting the static file.
upvoted 0 times
...
...
Paris
2 months ago
I think the correct answer is option C. It clearly states that the log file has not been collected previously, so 'add monitor' would be the appropriate command to ingest the static file.
upvoted 0 times
Dorsey
21 days ago
Brandee: So, we all agree that option C is the correct choice.
upvoted 0 times
...
Rosendo
26 days ago
Yes, option C specifies ingesting a file that has not been collected previously.
upvoted 0 times
...
Brandee
1 months ago
I agree, 'add monitor' would be the right command to use.
upvoted 0 times
...
Alonso
2 months ago
I think the correct answer is option C.
upvoted 0 times
...
...
Charlene
2 months ago
I think the answer is C.
upvoted 0 times
...

Save Cancel