Skip to content

dexterp/splunks3restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splunks3restore

A command line utility to recover Splunk buckets store in S3

This code implements concurrency and is blazing fast. A single threaded boto3 script will restore 600 S3 object restores per minute or 10 per second, splunks3restore is capable of restores of over 1000 objects per second. For a comparison in a test environment it would take over 30 days to restore 1.5M Splunk buckets using a single threaded python script in a continuous run. s3deletemarkers scanned and restored 1.5M in under 5 hours.

Note that by default the tool is rate limited to 256 S3 calls per second, rate limiting is crolled by the --rate= flag.

Help

Get command line help

splunks3restore --help

Get dateformat help

splunks3restore --dateformat

Examples

Recover _internal and _audit indexes from between 7 & 6 days ago

splunks3restore restore --s3bucket=s3bucket --start=-7d --end=-6d _internal~15~55B6B1CA-07FB-416E-A50F-D29C1E1B05E6 _internal~15~55B6B1CA-07FB-416E-A50F-D29C1E1B05E6

Restore buckets from an input list

splunks3restore restore --s3bucket s3-bucket --path s3/path --start -7d --end now --bidfile bidfile.txt

About

Fast restore of Splunk buckets on s3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •