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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...