Splunk Dev

Archiving index frozen data to S3 using script coldToFrozenPlusS3Uplaod

Splunk_rocks
Path Finder

Hello Splunkers,

just trying to send my frozen/cold/archive data to AW s3 bucket here is the script i found , i was not able to understand Archive_dir path,My splunk index location is - /splunk/index/splunk/indexname so in this case what is the path for ARCHIVE_DIR

### CHANGE THIS TO YOUR ACTUAL ARCHIVE DIRECTORY!!!
ARCHIVE_DIR = "/splunkdb/archived_indexes"
#ARCHIVE_DIR = os.path.join(os.getenv('SPLUNK_HOME'), 'frozenarchive')

script_path = '' #for the logging library
log_file_path = '' #Where you want the ascript to log to. For example /var/log/splunk_archive.log
gnu_home_dir = '' #where the gpg directory is. For example /home/s3/.gnupg/
reciepient_email = '' #the email the gpg uses to encrypt the files
Tags (1)
0 Karma

MuS
Legend

Hi,

Is this all of the script or is there more? If so can you please update and all of the script?

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...