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!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...