Getting Data In

The $SPLUNK_HOME/var/spool/splunk/ directory is filling up with stash_new Files

bpaul_splunk
Splunk Employee
Splunk Employee

After upgrading to Splunk version 6.2.4, the $SPLUNK_HOME/var/spool/splunk/ directory starts filling up with files with the extension of .stash_new. This answers post has been reviewed, but the issue should have been fixed in version 5.0.3. Why is this occurring?

1 Solution

bpaul_splunk
Splunk Employee
Splunk Employee

As stated in previous answers articles, these files are used for summary indexing. In a default installation, there is an batch stanza in the default inputs.conf file which reads the files and removes them.

[batch://$SPLUNK_HOME/var/spool/splunk/...stash_new]
queue       = stashparsing
sourcetype  = stash_new
move_policy = sinkhole
crcSalt     = <SOURCE>

Check for a stanza which monitors the same files. In this case, it was in $SPLUNK_HOME/etc/system/local/inputs.conf.

[monitor://$SPLUNK_HOME/var/spool/splunk/...stash_new]
disabled = 0

In newer versions of Splunk, having a batch and monitor stanza on the same files will prevent them from being removed. To resolve this, remove the monitor stanza and restart splunk.

View solution in original post

anubhp
New Member

Hi, I am facing a similar issue in version 7.2.3. I don't have a monitor stanza as inputs. Any idea whats the issue

0 Karma

bpaul_splunk
Splunk Employee
Splunk Employee

I would make sure to search all inputs.conf file to make sure there are no hidden monitor stanzas anywhere. You can also use btool to do this. Then I would look at the ERROR and WARN messages in the $SPLUNK_HOME/var/log/splunk/splunkd.log file to see what useful information you can find there. If you still cannot determine the cause of the directory not emptying, I would file a support ticket to get additional assistance. I would suggest attaching a diag from the instance. Also provide as much information on when the behavior started, and what changed prior to noticing the issue.

0 Karma

bpaul_splunk
Splunk Employee
Splunk Employee

As stated in previous answers articles, these files are used for summary indexing. In a default installation, there is an batch stanza in the default inputs.conf file which reads the files and removes them.

[batch://$SPLUNK_HOME/var/spool/splunk/...stash_new]
queue       = stashparsing
sourcetype  = stash_new
move_policy = sinkhole
crcSalt     = <SOURCE>

Check for a stanza which monitors the same files. In this case, it was in $SPLUNK_HOME/etc/system/local/inputs.conf.

[monitor://$SPLUNK_HOME/var/spool/splunk/...stash_new]
disabled = 0

In newer versions of Splunk, having a batch and monitor stanza on the same files will prevent them from being removed. To resolve this, remove the monitor stanza and restart splunk.

Get Updates on the Splunk Community!

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...

New Customer Testimonials

Enterprises of all sizes and across different industries are accelerating cloud adoption by migrating ...