Getting Data In

When does the Splunk forwarder empty the /splunkforwarder/var/spool/splunk directory?

othersider2
New Member

I performed a Splunk forwarder spool command to send a log file to Splunk Enterprise. The command made a copy of the log file and placed it into the $SPLUNK_HOME/splunkforwarder/var/spool/splunk directory. The log file was then successfully sent to the Enterprise sever. I was expecting that after the log file was successfully sent, that it would then be deleted from the $SPLUNK_HOME/splunkforwarder/var/spool/splunk directory. But the log file is still there.

Isn't the Splunk forwarder supposed to delete spooled files after a successful send? If so, what must I do to configure this, since it isn't happening out of the box?

0 Karma

bangalorep
Communicator
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi othersider2,

check splunkd.log of the universal forwarder for error messages related to this file. Most likely a permission issue, and the UF is not able to delete the file.

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...