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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...