All Apps and Add-ons

splunk add oneshot behavior

dshakespeare_sp
Splunk Employee
Splunk Employee

We have loaded a 16GB file using oneshot from the command line of a universal forwarder. When the UF was restarted, the data load stopped and did not resume after restart. Is this the behavior of oneshot? Does oneshot not use the fishbucket or stash?

Tags (1)

dshakespeare_sp
Splunk Employee
Splunk Employee

This is the correct behaviour of oneshot. It is designed as a "onetime" input. We read the source from start of file and stop when we reach EOF. We do not expect check the file again for growth, so there is no need to use fishbucket or stash

aholzer
Motivator

Given that you answered your own question it would have been nice if you added the link to the documentation where you found the answer. Good job on finding the answer though.

0 Karma

Glenn
Builder

It doesn't answer the question fully. If the file was still being loaded when the instance was restarted (ie. it was huge and took a long time), the indexing will not proceed through the rest of the file and you will get a partial upload.

0 Karma
Get Updates on the Splunk Community!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...