Tutorial: Collect Windows Events and Write Them to a File#
Use this tutorial when EventReporter should collect Windows Event Log data and store matching events in a local text file.
Goal#
At the end of this procedure, EventReporter will:
monitor one or more Windows event logs
pass matching events through a ruleset
write them to a file on disk
Prerequisites#
A writable target directory for log files
At least one ruleset for incoming events
An Event Log Monitor service that will bind to that ruleset
Steps#
Create or choose a ruleset.
Add a Write to File action.
Inside that ruleset, add a Write to File action.
Configure the target file.
Set File Path Name to the directory where EventReporter should write the files.
Set File Base Name to the logical file name prefix.
Keep the default extension unless you need something specific.
Create or choose an Event Log Monitor service.
Use Event Log Monitor V2 for new setups unless you have a compatibility reason to use V1.
Bind the service to the ruleset that contains the file action.
Save and apply the configuration.
Start or restart the EventReporter service if required.
Verification#
Trigger or wait for a Windows event that should match.
Open the configured directory.
Confirm that EventReporter created or updated the expected log file.
Next step#
If file logging works, continue with: