Getting Data In

Reindex old data from zip files

oliverw
New Member

I am trying to recover log data that has aged out of the Splunk index.
I have access to the original log files, they have been individually zipped, one log file per zip file. When our archive script did this originally, Splunk was smart enough to not re-index them. Now I want to re-index them as new files.

I have created a new recovery directory, added a new monitor to inputs.conf, and set crcSalt

[monitor://D:\IISLogs\LogFiles\Recovery]
disabled = 0
crcSalt = <SOURCE>
index = ms_iis
sourcetype = ms:iis:default

This all works fine with new test file, even a zip file, but when I copy one of the old zipped log files, they are not indexed.
If I unzip the log file, it is indexed correctly.
I have a lot of logs to ingest. How can I get Splunk to re-index them without unzipping them?

Tags (3)
0 Karma

p_gurav
Champion

Instead of reindexing can you try restoring archive data. Refer below document:
http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/Restorearchiveddata

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...