-
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] Can't read from continously updated .evtx file. #18732
Comments
Pinging @elastic/siem (Team:SIEM) |
The evtx reader uses the Windows API to read the data. It is meant for reading archived evtx files, not active logs. It will have about the same read rate since it uses the Windows API. |
If events are discarded before they can be read by Winlogbeat, yes, that would be a problem since you'd lose events. Using the large log size affords you some time for the reader to catch up, but if the high log rates are sustained for too long then the reader may not catch up before rotation occurs. |
Regarding throughput, in 7.7 Winlgobeat added an experimental event log reader that tries to address the read-throughput limits. See https://www.elastic.co/guide/en/beats/winlogbeat/7.7/configuration-winlogbeat-options.html#_event_logs_api. If you ever do get to a point where you can test the latest 7.7 then give that a try and let us know what issues you encounter so we can improve it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, |
No, the feature is meant to read from archived files. Actively written files should be referenced in the config via the associated event log channel name. |
Ok, thanks for your reply. Thing is, the Eventlog provider's log is available through EventTracingSession only, which writes logs to etl file continuously (once tracing is enabled). For e.g. Microsoft-Windows-Kernel-EventTracing. That's why I had to use this feature of reading events from file. |
Winlogbeat does not have support for Event Tracing (ETW) and the event trace log (ETL) files it produces. That's a separate Windows API from the Windows Event Log API. You may be able to read an ETL file that's been archived (not active) but it's not a supported or tested feature. The feature request for ETW is in #2073. |
I have winlogbeat running on a system where multiple hosts forward their events to a single host, which in turn runs winlogbeat to put all of those events to kafka. I have a load of ~5000 events per second, but winlogbeat manages only 2000 events per second on my machine. I just wanted to switch to reading .evtx files directly in hope that this will work out significantly faster.
In my windows event logging, I setup a max file size of 100GB and that new events overwrite old ones in that file.
My config looks like this:
On the first attempt, I got this error:
On the next start, I received this one:
I'm currently using WinLogBeat 7.2, probably switching to 7.6.2 soon. Due to #18640 , I can't test the latest 7.7 version.
Note that this 100GB is already full of events. I can follow that old events are already discarded. Might this cause a problem?
The text was updated successfully, but these errors were encountered: