documentation
documentation copied to clipboard
Explain how to create a Windows event log entry
Context
While setting up winlogbeat, it might be helpful to create event logs for testing purposes.
At least for me, this wasn't straight forward, because Write-Eventlog is very picky
with its options.
Expected Content
An example command that always works. E.g.:
Run this in the Windows Powershell:
Write-Eventlog -Logname System -Source Server -EventId 4711 -Message "Here goes nothing"