Skip to content

Conversation

@Robo210
Copy link
Contributor

@Robo210 Robo210 commented May 30, 2018

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

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.
@iSazonov iSazonov requested a review from dantraMSFT May 30, 2018 09:53
@iSazonov iSazonov self-assigned this May 30, 2018
Copy link
Member

@daxian-dbw daxian-dbw left a 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?

Copy link
Contributor

@dantraMSFT dantraMSFT left a 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"
Copy link
Contributor

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
Copy link
Contributor

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.

@iSazonov
Copy link
Collaborator

iSazonov commented Jun 8, 2018

Reopen The PR to restart CI Appveyor.

@iSazonov iSazonov closed this Jun 8, 2018
@iSazonov iSazonov reopened this Jun 8, 2018
@iSazonov
Copy link
Collaborator

@dantraMSFT Please update your review.

@iSazonov iSazonov merged commit 79ae17a into PowerShell:master Jun 14, 2018
@iSazonov
Copy link
Collaborator

@Robo210 Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants