Skip to content

fib0nacci/WindowsLogging

Repository files navigation

WindowsLogging

Materials that go along with the 2018 IWS presentation. Contents of this repo:

  • XML files for the subscriptions. Check out the wiki for how they work.
  • winlogbeats config for the WEF servers to send to Kafka
  • Logstash pipeline for windows logs
  • Windows Elasticsearch index template

WEF primer

WEF is both awesome and a turd. The awesome part is the pub-sub concepts. To set up the subscription, try this out:

  1. Create a windows server
  2. Set up the GPO
  3. Load up the WEF template wecutil.exe cs path_to_xml_file
  4. Watch the logs stream in Get-WinEvent -LogName ForwardedEvents -FilterHashtable @{logname='ForwardedEvents';ID=4104} -MaxEvents 10

Should you think the WEF is broken, try this out:

  1. List wef subscriptions wecutil.exe es
  2. Check out the subscription details wecutil.exe gs [name_from_#1]
  3. Check out the statistics wecutil.exe gr [name_from_#1]
  4. Retry the subscription wecutil.exe rs [name_from_#1]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published