Skip to content

Windows eventlog input plugin (based on #7020)#8000

Merged
ssoroka merged 13 commits intoinfluxdata:masterfrom
simnv:win_eventlog
Sep 28, 2020
Merged

Windows eventlog input plugin (based on #7020)#8000
ssoroka merged 13 commits intoinfluxdata:masterfrom
simnv:win_eventlog

Conversation

@simnv
Copy link
Copy Markdown
Contributor

@simnv simnv commented Aug 18, 2020

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Got win_eventlog pull request #7020 from @anuar45 for feature #4525 and went further (keeping his commits in this PR too):

  1. Keywords are converted from hex uint64 to text, and added as tag
  2. Event Data values are added by its names from Name attributes
  3. Additional tags and fields:
    computer, version, task, opcode, activity_id, user_id, process_id,
    process_name, thread_id
  4. user_id, activity_id, opcode are added only if not empty
  5. process_name is derived from pid
  6. Non-default Locale setting for converting Keywords to Text
  7. Updated documentation

anuar45 and others added 8 commits June 4, 2020 23:37
1. Keywords are converted from hex uint64 to text, and added as tag
2. Additional tags and fields:
computer, version, task, opcode, activity_id, user_id, process_id,
process_name, thread_id
3. user_id, activity_id, opcode are added only if not empty
4. process_name is derived from pid
5. Event Data values are added by its names from Name attributes
6. Non-default Locale setting for converting Keywords to Text
7. Updated documentation
@simnv
Copy link
Copy Markdown
Contributor Author

simnv commented Aug 21, 2020

Some ideas in library used in #7989 were very interesting, so I've changed code of this plugin a bit:

  1. Full list of System fields, also Level, Task and Opcode are rendered to text with given locale
  2. Message is rendered with given locale, also you can get only first line of Message
  3. Username is rendered from UserID SID
  4. Event fields filtering: you can now select which fields to use as tags, which fields to exclude, and which fields to exclude only if they are empty
  5. Globbing is supported for all those filters
  6. Added some tests for filtering logic
  7. UserData and EventData processing is now optional, also xml field naming changed a bit
  8. XML Field names Separator is now configurable

simnv added 3 commits August 21, 2020 14:37
1. Full list of System fields, also Level, Task and Opcode are rendered to text with given local
2. Message is rendered with given locale, also you can get only first line of Message
3. Username is rendered from UserID SID
4. Event fields filtering: you can now select which fields to use as tags, which fields to exclude, and which fields to exclude only if they are empty
5. Globbing is supported for all those filters
6. Added some tests for filtering logic
7. UserData and EventData processing is now optional, also xml field naming changed a bit
8. XML Field names Separator is now configurable
9. Some small fixes for typos
@reimda
Copy link
Copy Markdown
Contributor

reimda commented Sep 2, 2020

Thanks @simnv for the PR! Simnv is available on the InfluxDB community slack if we have questions about this PR.

@sjwang90 sjwang90 added this to the 1.16.0 milestone Sep 9, 2020
1. If evtSubscribe fails, return error instead of continuing
   to try with empty handle.
2. Check xml.Unmarshal for err, also add more error handling in tests.
3. Fix utf16 variable name that collided with imported package name.
4. Remove unused consts EvtRenderEventValues, EvtFormatMessageChannel,
   EvtFormatMessageProvider, EvtFormatMessageId and EvtFormatMessageXml
@simnv
Copy link
Copy Markdown
Contributor Author

simnv commented Sep 23, 2020

@p-zak Thank you for the review!

I think I've addressed all of your notes in a new commits. Ready to discuss more. :)

@p-zak
Copy link
Copy Markdown
Collaborator

p-zak commented Sep 23, 2020

@simnv I think you can resolve all previous issues - LGTM :)

@ssoroka ssoroka merged commit 57cd20a into influxdata:master Sep 28, 2020
@sjwang90 sjwang90 added the area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) label Dec 1, 2020
@simnv simnv deleted the win_eventlog branch August 11, 2021 20:10
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
…8000)

Co-authored-by: Anuar Serdaliyev <serdaliyev.anuar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) new plugin platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants