I have, from a Splunk python script, developed coldToFrozenPlusS3Uplaod.py that encrypts and uploads frozen buckets to S3.
It can be found here: https://github.com/marboxvel/Encrypt-upload-archived-Splunk-buckets
Hi Sbuttio,
Im using your script here is sample one getting issues
import sys, os, gzip, shutil, subprocess, random, gnupg
import boto
import datetime
import time
import tarfile
sys.path.append(script_path)
import applyLogging
ARCHIVE_DIR = "/splunk/index/splunk/archiveindex"
script_path = '/opt/splunk/etc/apps/Encrypt-upload-archived-Splunk-buckets-master/coldToFrozenPlusS3Uplaod.py'
log_file_path = '/opt/splunk/var/log/splunk/'
gnu_home_dir = /home/splunkq/.gnupg
reciepient_email = xxyxy@gmail.com
logger = applyLogging.get_module_logger(app_name='SplunkArchive',file_path=log_file_path)
all are same
Can you please help me
Here is what you need to do:
$SPLUNK_HOME/etc/apps/s3/README/inputs.conf.spec
inputs.conf.spec
[s3://
key_id =
* This is Amazon key ID.
secret_key =
* This is the secret key.
http://docs.splunk.com/Documentation/Splunk/6.0.1/AdvancedDev/ModInputsExample