-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[winlogbeat] Use the original host for host.name in Windows Event Logs #13706
Comments
Thanks @faec. For context, this only applies when using Windows Event Forwarding (WEF). In that case, it's possible to change the
But yeah, would be nice if at some point Winlogbeat would do this automatically. /cc @andrewkroh |
Hey ive also had this but the fix noted in the form doesn't seem to work for me as im using the option |
Seems like the mentioned code isn't working in winlogbeat 7.4. Here's my winlogbeat.yml:
any idea what could that be? |
ah, got it working; which contains following code:
And in winlogbeat.yml processors section I added:
Now it all works like a charm :) Thing is, it only seems to be working when added in top processors section, not under event_logs |
Yeah, if you put it under
I see, yeah. Same problem as above, we first need to fix libbeat to not overwrite |
Have tried your solution, but the winlogbeat service won't start, checked syntax and all looks ok, any chance of getting your winlogbeat.yml file? |
@tomrade A workaround that I just though about: You could add a |
- set host.name to computer name for windows events and sysmon Fixes elastic#13706
* Set host.name to computername - set host.name to computer name for windows events and sysmon - Add info about libbeat elastic#14407 dependency Fixes elastic#13706 (cherry picked from commit da6dd9d)
Windows Event Logs allows windows logs from many systems to be automatically collected on a single aggregated node. When Winlogbeat ingests these aggregate logs, it sets
host.name
to the host that is running the beat, rather than the host that the log originally came from. This causes downstream confusion, e.g. the support case that prompted this noted that the SIEM "Uncommon Processes" category wasn't useful in this setting because logs from many nodes were treated as a single host.This problem comes up in other settings, such as syslog ingestion in Filebeat which often aggregates logs from many nodes, so while the particular case that prompted it is Winlogbeat, this is arguably a larger meta-issue for any beats / inputs that might serve as aggregation points.
It's still possible to handle these correctly today using advanced features such as script processors, but it would be nice to have a simpler and more consistent configuration story for this increasingly common pattern.
The text was updated successfully, but these errors were encountered: