Getting Data In

What is the best way to reload Windows event log data?

jamesvz84
Communicator

I want to reload Windows event log data from the beginning of time for all hosts and remove all event log data that is currently there. What are the recommended steps to do that?

The current index we are using does not contain all historical event logs, so we want to just cleean it out and re-insert from beginning,

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

To remove events from the index, they are not methods, you have to wait for the data to age.
However you can "hide" the events using the "delete" command, see http://docs.splunk.com/Documentation/Splunk/6.0.2/Indexer/RemovedatafromSplunk

To reindex WinEventLog logs, you can reset a channel counters on an instance:

  • stop the forwarder,
  • on splunk 4.* and 5.* delete the counter files in $SPLUNK_HOME\var\lib\splunk\persistentstorage\WinEventLog
  • in addition on splunk 6.*, delete the counter files in $SPLUNK_HOME\var\lib\splunk\modinputs\WinEventLog
  • restart the forwarder

View solution in original post

yannK
Splunk Employee
Splunk Employee

To remove events from the index, they are not methods, you have to wait for the data to age.
However you can "hide" the events using the "delete" command, see http://docs.splunk.com/Documentation/Splunk/6.0.2/Indexer/RemovedatafromSplunk

To reindex WinEventLog logs, you can reset a channel counters on an instance:

  • stop the forwarder,
  • on splunk 4.* and 5.* delete the counter files in $SPLUNK_HOME\var\lib\splunk\persistentstorage\WinEventLog
  • in addition on splunk 6.*, delete the counter files in $SPLUNK_HOME\var\lib\splunk\modinputs\WinEventLog
  • restart the forwarder

shocko
Contributor

This helped me so thanks!

0 Karma
Get Updates on the Splunk Community!

Introducing Edge Processor: Next Gen Data Transformation

We get it - not only can it take a lot of time, money and resources to get data into Splunk, but it also takes ...

Take the 2021 Splunk Career Survey for $50 in Amazon Cash

Help us learn about how Splunk has impacted your career by taking the 2021 Splunk Career Survey. Last year’s ...

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...