New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk SPLK-1003 Exam - 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:

0/2000 characters
Joseph
3 months ago
I agree with A, but why not just use the latest version of Splunk?
upvoted 0 times
...
Annice
3 months ago
Wait, can you really use "edit" in that context? Seems off.
upvoted 0 times
...
Rebeca
3 months ago
Definitely going with A, it’s a one-shot deal!
upvoted 0 times
...
Jestine
4 months ago
I think C is better since it monitors the file.
upvoted 0 times
...
Ruthann
4 months ago
Option A is the right command for a one-time ingestion.
upvoted 0 times
...
Caprice
4 months ago
I think `edit oneshot` might be a typo in the options. I need to double-check what `edit` does in this context.
upvoted 0 times
...
Chau
4 months ago
I feel like I saw a similar question where we had to specify the index correctly. I hope I remember the right command for this one.
upvoted 0 times
...
Karl
4 months ago
I think the `add monitor` command is for continuous monitoring, which doesn't fit since we only want to ingest this file once.
upvoted 0 times
...
Ozell
5 months ago
I remember practicing with the `oneshot` command for static files, but I'm not sure if it's the right syntax here.
upvoted 0 times
...
Eliseo
5 months ago
I think option C is the way to go. The "add monitor" command will ingest the static file without indexing any future updates, which is exactly what the question is asking for. Seems like a straightforward Splunk administration question to me.
upvoted 0 times
...
Annmarie
5 months ago
I'm a little confused by the different options here. The wording of the question is a bit tricky, and I'm not entirely sure which command would be the most appropriate. I'll have to think about this one a bit more.
upvoted 0 times
...
Tanja
5 months ago
Okay, I've got this. The key is that the file hasn't been collected before and future updates shouldn't be indexed. So the "add one shot" command in option A seems like the best fit to meet those requirements.
upvoted 0 times
...
Harley
5 months ago
Hmm, I'm a bit unsure about this one. The question mentions that the file hasn't been collected previously, so I'm not sure if "edit monitor" would be the right approach. Let me re-read the question carefully and think this through.
upvoted 0 times
...
Joni
5 months ago
This looks like a straightforward Splunk command question. I think option C is the correct answer, as it uses the "add monitor" command to ingest the static log file without indexing future updates.
upvoted 0 times
...
Delmy
1 year ago
I'm not sure, but I think option B could also work because it mentions monitoring the file.
upvoted 0 times
...
Samuel
1 year 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
1 year ago
Definitely, option C is the way to go for ingesting the static file.
upvoted 0 times
...
Annelle
1 year ago
I think we can safely go with option C for this scenario.
upvoted 0 times
...
Evan
1 year ago
Yeah, option D does seem a bit off, haha.
upvoted 0 times
...
Jennifer
1 year ago
I agree, option C seems like the most appropriate choice.
upvoted 0 times
...
...
Carry
1 year ago
I agree with Charlene, option C seems like the correct command.
upvoted 0 times
...
Sunshine
1 year 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
1 year ago
Let's go with C to ensure the file is ingested correctly without future updates being indexed.
upvoted 0 times
...
Rasheeda
1 year ago
I agree, C seems like the best option for this scenario.
upvoted 0 times
...
Delfina
1 year ago
I think C is the correct command for ingesting the static file.
upvoted 0 times
...
...
Paris
1 year 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
1 year ago
Brandee: So, we all agree that option C is the correct choice.
upvoted 0 times
...
Rosendo
1 year ago
Yes, option C specifies ingesting a file that has not been collected previously.
upvoted 0 times
...
Brandee
1 year ago
I agree, 'add monitor' would be the right command to use.
upvoted 0 times
...
Alonso
1 year ago
I think the correct answer is option C.
upvoted 0 times
...
...
Charlene
1 year ago
I think the answer is C.
upvoted 0 times
...

Save Cancel