-
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] Features / Status / Roadmap #465
Comments
Winlogbeat Status TrackingUpdated: 2019-12-20 This issue tracks the overall status of the effort. We can open separate issues to discuss individual features in depth. Features
Performance
Type Safety
Test cases
|
Is it necessary to do regex filtering on the event? I'm pretty sure you can get all event field values as objects, fields you don't see in the event viewer but are special objects still. |
That's what I'm pointing out, you don't have to. For example if a user1 adds user2 to group1 the message field will say that. But also in the event are special fields like the eventid that are called something along the lines of param1, param2 and so on. The message field is an attempt to make the event human readable, and I truly mean an attempt. |
Here is an example that is showing what I mean, see the variables named %1,%2 and so on. That url is a great resource, change the url parameters to get different events |
@elvarb Are you saying that regex based filtering is not required if Winlogbeat supports Event ID based filtering since each message is really just derived from a parameterized message template that is given by Event ID + Event Source? |
@andrewkroh Exactly, or I at least hope so. The reference to those fields are all over in the Windows documentation and I know that nxlog can read those fields. Here is another example https://msdn.microsoft.com/en-us/library/aa368560(v=vs.85).aspx And how to write event logs using parameters https://msdn.microsoft.com/en-us/library/windows/hardware/ff566411(v=vs.85).aspx And code examples how to get those insertation strings I have created regex for various windows event logs coming through OSSEC, which is always full text, not fun and prone to regex errors because of unexpected reasons. Try to avoid regex as much as you can. In my logstash config I am also using the translate filter for various Windows events to translate from specific codes to human readable text. For example logon type:
Would be fantastic if beats could do this to on the host level instead of having Logstash do this for well known native codes. (for some cases it is still better to do it in Logstash, custom filters and so on) |
You've probably already figured this out, but thought I would add some additional context to elvarb's comments from my non-programmer point of view. You can see the individual fields and values within the event log object in a few methods: In Event Viewer, the XML View has an EventData node with the individual keys and values, and the message is just a more descriptive representation of the EventData values. In PowerShell the individual values are accessible in the "Properties" Property. You can see this when you run the following: or with: I hope that is helpful, I would really love to see this improvement so I can reduce my logstash parsing a bit. |
The above comment is related to the feature requested in #1053. |
Reading in .evtx sounds amazing. I'm sure lots of people in the security community would love that! |
Currently we have an internal python based solution for offline files using python-evtx , which uses an Event ID yaml library but for beats these may be useful. Its worth nothing that your YAML might need to nested as different event channels will reuse eventids eg security , system etc evtx go library evtx event id database tool with example output |
Here's and MIT licensed evtx parser I found that we could try: https://github.com/dutchcoders/evtxparser The https://github.com/0xrawsec/golang-evtx project is GPL so it's incompatible with Apache 2.0. |
I think reading .evt and .evtx files can be done with Microsoft native api(EvtQuery, EvtSeek,EvtNext ,EvtClose), |
@PChou I've compiled your branch and just imported 47 archived evtx files (45GB on disk). It worked like a charm. I did notice when extending the glob to all 5 thousand files in the folder, that winlogbeat did choke, causing floods of messages about the event api being to busy. Looking forward for this feature to make it into release 😄 |
+1 |
@andrewkroh How relevant is this old meta issue? |
It's still relevant. Currently we need to execute complex grok parsing with Logstash to make the output pretty. |
I'm closing this general meta issue. In the meantime lots of changes happen. Lets track additional efforts for winlogbeat in separate issues. Many of them are already linked above. |
See background here: https://github.com/elastic/filebeat/issues/130
And current status here: https://github.com/elastic/winlogbeat/issues/1The text was updated successfully, but these errors were encountered: