Getting Data In

"splunk add oneshot" not working

vpsmax
Path Finder

Hello.

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

Regards,
Max

 

Labels (2)
0 Karma

anwarmian
Communicator

We need to remember that Universal Forward does not do index-time parsing, on the other hand a Splunk Enterprise server such as a Heavy Forwarder, Search Head, Deployment server, depoyer, etc does the index-time parsing.  Indexers  expect that the data that come via another Splunk Enterprise server have the data cooked.

0 Karma

ivanreis
Builder

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

bdiego_splunk
Splunk Employee
Splunk Employee

Hi Max,

Please try:

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

Regards,

-bd-

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...