Splunk Search

Change partition of where the search data is queued up

kholleran
Communicator

Hi,

I am sure the answer is out there but I am not exactly sure how to ask the question.

My Splunk server has two partitions, one for the OS & Applications, a second for the data. My Splunk Data is stored on the data partition. However, when a search is run, it decompresses the data (or something like that) to the application directory. For large time frame searches, it is eating up a lot of disk space on the OS/App partition. I would like this to happen on the data partition.

How can I move the location for this?

Thank you very much for any help. I am sure it is in a config file somewhere, but I am not exactly sure what it would be called to look for it.

Thanks!

Kevin

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Search results and working space is stored in $SPLUNK_HOME/var/run/splunk/ (Splunk index data is by default in $SPLUNK_HOME/var/lib/splunk). The easiest way to put this onto a different partition is to change that directory path to a symbolic link in another location. On Windows pre-2008, you would use NTFS junctions: http://technet.microsoft.com/en-us/sysinternals/bb896768 or symbolic links on Windows 2008 or later.

Be sure to stop Splunk and copy over the contents, or you'll lose job results.

Be aware that this is different if you have search head pooling enabled, though, as search results are on the shared pool under that configuration, and for SH pooling to work, the shared area must continue to be shared storage, though I believe more recent versions also continue to use the local work space (though less of it).

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...