Getting Data In

"splunk add oneshot" not working

Path Finder


Trying to test a sourcetype using "oneshot".  Although we were able to add raw data using "oneshot" the first time, we are not seeing any subsequent updates.  The command we are using is ...

splunk add oneshot /tmp/<filename>.txt -index <indexname> -sourcetype <sourcetypename>

What are the best approaches to troubleshoot "oneshot"?



Labels (2)
0 Karma


Hi Max, use this command to check if the file status of the file has been reset

splunk cmd btprobe -d $SPLUNK_DB/fishbucket/splunk_private_db --file <file> --reset

The response from this command is an indicator that the status for the file has been reset. Again, a restart of the forwarder is required for Splunk to then ingest that file anew.

if this assist you, please upvote. 

0 Karma

Splunk Employee
Splunk Employee

Hi Max,

Please try:

splunk add oneshot -source /tmp/<filename>.txt -index <indexname> -sourcetype <sourcetypename>



0 Karma
Get Updates on the Splunk Community!

There's No Place Like Chrome and the Splunk Platform

Watch On DemandMalware. Risky Extensions. Data Exfiltration. End-users are increasingly reliant on browsers to ...

The Great Resilience Quest: 5th Leaderboard Update

The fifth leaderboard update for The Great Resilience Quest is out &gt;&gt; &#x1f3c6; Check out the ...

Devesh Logendran, Splunk, and the Singapore Cyber Conquest

At this year’s Splunk University, I had the privilege of chatting with Devesh Logendran, one of the winners in ...