Getting Data In

How can a specific time period of logs be recovered from one Splunk indexer, then restored into another indexer?

cmcdole
Path Finder

For example, if I needed the logs dated from January 1, 2016 - January 31, 2016 moved to a different indexer. How can this be achieved?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Easiest method is to run your search that considers that time frame, table _raw, then export it and import it.

Of course the export has a default limit of 10k events in csv, etc...

Another method is a bit more barbaric and probably wont get exact dates, but you can copy index buckets from one server to the other, and then using the delete command, you can trim it to the exact data you want. Bonus to this is there is no license hit. Drawback is that you'll have to look through the index manifest files to find the names of the buckets you want to move. The manifests have date ranges and event counts of each bucket so it's fairly straightforward once you locate them:

C:\Program Files\Splunk\var\lib\splunk\defaultdb\db.bucketManifest <- for example

0 Karma

cmcdole
Path Finder

Thank you for the fast replies. I will take a look at this and let you know if that does it.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Are the indexers in the same cluster, different clusters, one is standalone, new indexer is in a cluster, both are standalone?

Whats the setup? This is a very tricky operation IMHO.

0 Karma

cmcdole
Path Finder

Both the indexers are standalone.

0 Karma

jkat54
SplunkTrust
SplunkTrust

Ok thanks... it will take a moment+ for me to type the answer.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...