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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...