Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions wec-registry-tweaks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# WEC-Registry-Tweaks

In high volume environments, it may be necessary to increase memory buffers for heavy intake Subscriptions.
Applying these registry files will increase the buffers available for the Windows event collector, but has the possibility of exhausting system resources.
Once rebooted, you can look at the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\Autologger\[Event-Channel]\{[Provider-Guid]}\Status] entry to determine if the resources were allocated successfully (0) or if the system doesn't have enough resources (1450)

## Contents of Registry Files

```
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\Autologger\[Event-Channel]]
"Guid"="{[Unique-Guid]}"
"BufferSize"=dword:00000100
"FlushTimer"=dword:00000000
"MaximumBuffers"=dword:00000400
"MinimumBuffers"=dword:00000000
"OwningChannel"="[Event-Channel]"
"Start"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\Autologger\[Event-Channel]\{[Provider-Guid]}]
"Enabled"=dword:00000001
```

### Descriptions

* Guid - Unique Per Subscription
REG_SZ
A string that contains a GUID that uniquely identifies the session. This value is required.
* BufferSize - Default to 256 (256KB)
REG_DWORD
The size of each buffer, in kilobytes. Should be less than one megabyte. ETW uses the size of physical memory to calculate this value.
* FlushTimer - Default to 0
REG_DWORD
How often, in seconds, the trace buffers are forcibly flushed. The minimum flush time is 1 second. This forced flush is in addition to the automatic flush that occurs when a buffer is full and when the trace session stops. For the case of a real-time logger, a value of zero (the default value) means that the flush time will be set to 1 second. A real-time logger is when LogFileMode is set to EVENT_TRACE_REAL_TIME_MODE.The default value is 0. By default, buffers are flushed only when they are full.
* MaximumBuffers - Default to 1024 buffers (Defaults to 256MB Maximum per buffer)
REG_DWORD
The maximum number of buffers to allocate. Typically, this value is the minimum number of buffers plus twenty. ETW uses the buffer size and the size of physical memory to calculate this value. This value must be greater than or equal to the value for MinimumBuffers.
* MinimumBuffers
REG_DWORD
The minimum number of buffers to allocate at startup. The minimum number of buffers that you can specify is two buffers per processor. For example, on a single processor computer, the minimum number of buffers is two.
* Start
REG_DWORD
To have the AutoLogger session start the next time the computer is restarted, set this value to 1; otherwise, set this value to 0.



## Helpful Resources
* [Microsoft WMI Autologger documentation](https://docs.microsoft.com/en-us/windows/desktop/etw/configuring-and-starting-an-autologger-session)
* [Windows Event Forwarding into HP/ArchSight at Scale](https://community.softwaregrp.com/dcvta86296/attachments/dcvta86296/arcsight-discussions/24729/1/Protect2015-WindowsEventForwarding.pdf)
Binary file added wec-registry-tweaks/WEC-Authentication.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC-Code-Integrity.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC-Powershell.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC-Process-Execution.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC-Services.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC-WMI.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Application-Crashes.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Applocker.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Group-Policy-Errors.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Object-Manipulation.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Registry.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Task-Scheduler.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC2-Windows-Defender.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Account-Management.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Drivers.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-External-Devices.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Firewall.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Print.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Smart-Card.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC3-Windows-Diagnostics.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-Bits-Client.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-DNS.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-Hotpatching-Errors.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-Shares.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-System-Time-Change.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-Windows-Updates.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC4-Wireless.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC5-Autoruns.reg
Binary file not shown.
Binary file not shown.
Binary file added wec-registry-tweaks/WEC5-Crypto-API.reg
Binary file not shown.
Binary file not shown.
Binary file added wec-registry-tweaks/WEC5-Log-Deletion-System.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC5-MSI-Packages.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC5-Operating-System.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-ADFS.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-Device-Guard.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-Duo-Security.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-Exploit-Guard.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-Microsoft-Office.reg
Binary file not shown.
Binary file not shown.
Binary file added wec-registry-tweaks/WEC6-Sysmon.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC7-Active-Directory.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC7-Privilege-Use.reg
Binary file not shown.
Binary file added wec-registry-tweaks/WEC7-Terminal-Services.reg
Binary file not shown.