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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...