-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix Windows Event Log channel isolation semantics #6956
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
Conversation
Remove isolation attribute from Analytic and Debug channels. These channel types always have an isolation of Custom. The Admin channel was enabled by default, but the comments for the channel indicated that it should be off by default and thus it is OK to use a huge file size and have it stop collecting events when the size is reached. This looks like a copy/paste error where the logging element was copied from a channel with a different isolation type, so fix it by duplicating the Operational channel's logging element instead. Since no events are being written to the Admin channel currently, set it to disabled by default.
daxian-dbw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Robo210!
The changes look good to me.
@dantraMSFT Can you please take a look?
dantraMSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no reason to have an admin channel, it's not used for any events and I see no indication that it will change.
| </publishing> | ||
| </channel> | ||
| <channel | ||
| chid="C_ADMIN" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there are no events referencing this channel, it should simply be removed, not disabled.
The admin channel is not used by any events, so remove it.
| </events> | ||
| <channels> | ||
| <!--There are two channels defined for Windows PowerShell instrumentation | ||
| <!--There are four channels defined for Windows PowerShell instrumentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should have mentioned this before, you'll want to remove these comments around Admin as well.
|
Reopen The PR to restart CI Appveyor. |
|
@dantraMSFT Please update your review. |
|
@Robo210 Thanks for your contribution! |
Remove isolation attribute from Analytic and Debug channels. These channel types always have an isolation of Custom, regardless of what is put here in the manifest.
Since no events are being written to the Admin channel currently, remove it. This avoids the Windows Event Log pre-allocating a file for the channel.
PR Summary
Avoid setting incorrect values in the ETW manifest that get silently ignored by mc/wevtutil.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests