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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...