All Apps and Add-ons

Shuttl: how does it really work?

stefano_guidoba
Communicator

Hi,

I'm experiencing some difficulties in using Shuttl app, though I guess I'm doing things the right way.
I installed the app yesterday and exported to CSV an entire index without issues. Only one bucket remained in Splunk, but it contains a single event so I didn't really bother.
Today I used Shuttl to archive to more indexes: with the same settings used yesterday, I was able to only archive 3 buckets of the first index and none of the second. I tried multiple configurations of my indexes.conf file, but the only enhancement I've had is that I was able to archive ten more buckets of the first index.
My indexes.conf is configured as follows:

[main]
homePath = /splunk2/indexes/defaultdb/db
coldPath = /splunk2/indexes/defaultdb/colddb
thawedPath = /splunk2/indexes/defaultdb/thaweddb
rotatePeriodInSecs = 10
maxWarmDBCount = 0
maxDataSize = 1
warmToColdScript = $SPLUNK_HOME/etc/apps/shuttl/bin/warmToColdScript.sh
coldToFrozenScript = $SPLUNK_HOME/etc/apps/shuttl/bin/coldToFrozenScript.sh

My need is to dump the whole indexes in CSV files in order to export them in an older Splunk installation (job for which this app works really good).
Any suggestion would be appreciated.
Also, a functionality doubt: does Shuttl archive buckets when they switch from warm to cold or from cold to frozen?
Regards,

Stefano

Tags (2)
0 Karma
1 Solution

stefano_guidoba
Communicator

I've found my issue: Shuttl uses a temporary folder (default set ~/shuttl_archiver) and on my server, /home partition was set to a very low size.
So, archiving an entire index saturated the filesystem and I solved creating a symbolic link to my NAS mounted under /splunk2.

Hope this could help anyone else who's having problems with Shuttl.
Regards,
Stefano

View solution in original post

bchen
Splunk Employee
Splunk Employee

Thanks Stefano, that is exactly correct!

File transfer happens in the following steps:
1) Shuttl will move the file from the colddb dir to a local tmp (defined via localArchiverDir in conf/archiver.xml)
2) Shuttl will then copy the file from localArchiverDir to a tmp area at the destination
3) When the transfer completes, it then will move the file from that area to the final destination
4) Files in the local tmp are deleted when transfers are successful

This mechanism gives us the necessary reliability to handle crashes, network interruptions, etc.

stefano_guidoba
Communicator

I've found my issue: Shuttl uses a temporary folder (default set ~/shuttl_archiver) and on my server, /home partition was set to a very low size.
So, archiving an entire index saturated the filesystem and I solved creating a symbolic link to my NAS mounted under /splunk2.

Hope this could help anyone else who's having problems with Shuttl.
Regards,
Stefano

Get Updates on the Splunk Community!

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...