-
Notifications
You must be signed in to change notification settings - Fork 19
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
parse_description in windows_eventlog2 is broken #97
Comments
I wanted to share of what happens when i set
|
Same issue here, using Fluentd and Loki. doesnt seem to be fixed |
So I've gotten this to work, but it's using some undocumented options (mainly the winevt_sax) Obviously I'm using the YAML format, you'll have to convert to the XML: config:
- source:
$type: windows_eventlog2
#channels: security,system,application
subscribe:
channels: security,system,application
#read_existing_events: true
tag: winevt
storage:
persistent: true
path: C:\opt\fluent\etc\fluent\winevt.json
# Break out EventData into it's own fields
parse_description: true
preserve_qualifiers_on_hash: true
parse:
$type: winevt_sax
preserve_qualifiers: true With this option I get what you were describing, where EventData is broken out into it's own fields. |
@landon-lengyel Out of curiousity, what do you use EventData for if there aren't fields assigned to them? In all of my usage EventData is only able to extract the field values. |
@BlakeHensleyy Are you referring to the field names? FluentD does extract them for me with that config I provided.
And so forth. It does seem to rename them in the sense that it's not the identical name that appears in Event Viewer > Details > XML View. I'm not sure where it gets the names it chooses. |
@landon-lengyel I see what you mean now. So these fields are parsed from the description, for EventID 4648 the description is:
The fields and field values are then parsed from the description. For example with the category(parent key) being Subject, the child keys for Subject is:
From what I can tell there isn't a way to actually get the XML field names, just the values which are stored in the EventData field. |
I see, I must have misunderstood it but that does make sense. Thank you for finding that! I know when I experimented with getting that EventData in PowerShell and C# it was a pain. |
I think
parse_description true
is broken. My config:What i am expecting is something that looks like this:
However what I am getting is:
Am I doing something wrong or something broken with the parser?
The text was updated successfully, but these errors were encountered: