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.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...