You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Description
Adds automatic Security Identifier (SID) resolution to the Windows Event
Log Receiver. This enhancement resolves Windows SIDs to human-readable
user and group names using the Windows LSA API, making Windows event
logs significantly more usable for security operations.
#### Link to tracking issue
Fixesopen-telemetry#45875
#### Testing
Comprehensive unit tests added covering:
- Cache operations (Get, Set, Close)
- Well-known SID resolution (45+ built-in mappings)
- Invalid SID handling
- SID field detection logic
- End-to-end enrichment scenarios
- Platform-specific builds (Windows/non-Windows)
#### Documentation
Added comprehensive documentation to README.md, including:
- Complete configuration options and defaults
- Before/after examples with real SID resolution
- Performance characteristics and benchmarks
- Troubleshooting guide
- Well-known SIDs reference
- Configuration example files in testdata/
**Documentation Files:**
- `receiver/windowseventlogreceiver/README.md` - Updated with SID
information
- `receiver/windowseventlogreceiver/testdata/README.md` - Complete setup
guide
-
`receiver/windowseventlogreceiver/testdata/collector-config-example.yaml`
- Example config
Copy file name to clipboardExpand all lines: receiver/windowseventlogreceiver/README.md
+110Lines changed: 110 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,10 @@ Tails and parses logs from windows event log API using the [opentelemetry-log-co
40
40
|`retry_on_failure.max_elapsed_time`|`5 minutes`| Maximum amount of time (including retries) spent trying to send a logs batch to a downstream consumer. Once this value is reached, the data is discarded. Retrying never stops if set to `0`. |
41
41
|`remote`| object | Remote configuration for connecting to a remote machine to collect logs. Includes server (the address of the remote server), with username, password, and optional domain. |
42
42
|`query`| none | XML query used for filtering events. See [Query Schema](https://learn.microsoft.com/en-us/windows/win32/wes/queryschema-schema)|
43
+
|`resolve_sids`| object | Configuration for resolving Windows Security Identifiers (SIDs) to user/group names. See [SID Resolution](#sid-resolution) section below. |
44
+
|`resolve_sids.enabled`|`false`| If `true`, automatically resolves SIDs to user and group names in Windows event logs. |
45
+
|`resolve_sids.cache_size`|`10000`| Maximum number of SID-to-name mappings to cache in memory. Older entries are evicted using LRU policy. |
46
+
|`resolve_sids.cache_ttl`|`15m`| Time-to-live for cached SID mappings. After this duration, SIDs will be re-resolved from the Windows LSA API. |
43
47
44
48
### Operators
45
49
@@ -134,3 +138,109 @@ receivers:
134
138
</Query>
135
139
</QueryList>
136
140
```
141
+
142
+
#### SID Resolution
143
+
144
+
Windows Event Logs often contain Security Identifiers (SIDs) instead of readable user or group names. The SID resolution feature automatically resolves these SIDs to human-readable names using the Windows Local Security Authority (LSA) API.
145
+
146
+
**Key Features:**
147
+
- Automatically enriches Windows events with resolved user and group names
148
+
- High-performance LRU cache with configurable size and TTL
0 commit comments