You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: DSCResources/MSFT_xWebsite/MSFT_xWebsite.psm1
+164-7
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ data LocalizedData
49
49
VerboseSetTargetUpdateLogTruncateSize = TruncateSize does not match and will be updated on Website "{0}".
50
50
VerboseSetTargetUpdateLoglocalTimeRollover = LoglocalTimeRollover does not match and will be updated on Website "{0}".
51
51
VerboseSetTargetUpdateLogFormat = LogFormat is not in the desired state and will be updated on Website "{0}"
52
+
VerboseSetTargetUpdateLogCustomFields = LogCustomFields is not in the desired state and will be updated on Website "{0}"
52
53
VerboseTestTargetFalseEnsure = The Ensure state for website "{0}" does not match the desired state.
53
54
VerboseTestTargetFalsePhysicalPath = Physical Path of website "{0}" does not match the desired state.
54
55
VerboseTestTargetFalseState = The state of website "{0}" does not match the desired state.
@@ -69,6 +70,7 @@ data LocalizedData
69
70
VerboseTestTargetFalseLogTruncateSize = LogTruncateSize does not match desired state on Website "{0}".
70
71
VerboseTestTargetFalseLoglocalTimeRollover = LoglocalTimeRollover does not match desired state on Website "{0}".
71
72
VerboseTestTargetFalseLogFormat = LogFormat does not match desired state on Website "{0}".
73
+
VerboseTestTargetFalseLogCustomFields = LogCustomFields does not match desired state on Website "{0}".
72
74
VerboseConvertToWebBindingIgnoreBindingInformation = BindingInformation is ignored for bindings of type "{0}" in case at least one of the following properties is specified: IPAddress, Port, HostName.
73
75
VerboseConvertToWebBindingDefaultPort = Port is not specified. The default "{0}" port "{1}" will be used.
74
76
VerboseConvertToWebBindingDefaultCertificateStoreName = CertificateStoreName is not specified. The default value "{0}" will be used.
@@ -130,6 +132,8 @@ function Get-TargetResource
130
132
$webConfiguration=$websiteAutoStartProviders|`
131
133
Where-Object-Property Name -eq-Value $ServiceAutoStartProvider|`
# The second Set-WebConfigurationProperty is to handle an edge case where logfile.customFields is not updated correctly. May be caused by a possible bug in the IIS provider
@@ -43,4 +51,5 @@ class MSFT_xWebsite : OMI_BaseResource
43
51
[Write, Description ("How large the file should be before it is truncated")] String LogTruncateSize;
44
52
[Write, Description ("Use the localtime for file naming and rollover")] Boolean LoglocalTimeRollover;
45
53
[Write, Description ("Format of the Logfiles. Only W3C supports LogFlags"), ValueMap{"IIS","W3C","NCSA"}, Values{"IIS","W3C","NCSA"}] String LogFormat;
54
+
[Write, EmbeddedInstance("MSFT_xLogCustomFieldInformation"), Description("Custom logging field information in the form of an array of embedded instances of MSFT_xLogCustomFieldInformation CIM class")] String LogCustomFields[];
Copy file name to clipboardexpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,10 @@ Please check out common DSC Resources [contributing guidelines](https://github.c
185
185
***LogTruncateSize**: How large the file should be before it is truncated. If this is set then LogPeriod will be ignored if passed in and set to MaxSize. The value must be a valid integer between `1048576 (1MB)` and `4294967295 (4GB)`.
186
186
***LoglocalTimeRollover**: Use the localtime for file naming and rollover. The acceptable values for this property are: `$true`, `$false`
187
187
***LogFormat**: Format of the Logfiles. **Note**Only W3C supports LogFlags. The acceptable values for this property are: `IIS`,`W3C`,`NCSA`
188
+
***LogCustomFields**: Custom logging field information the form of an array of embedded instances of the **MSFT_xLogCustomFieldInformation** CIM class that implements the following properties:
189
+
***LogFieldName**: Field name to identify the custom field within the log file. Please note that the field name cannot contain spaces.
190
+
***SourceName**: You can select `RequestHeader`, `ResponseHeader`, or `ServerVariable` (note that enhanced logging cannot log a server variable with a name that contains lower-case characters - to include a server variable in the event log just make sure that its name consists of all upper-case characters).
191
+
***SourceType**: Name of the HTTP header or server variable (depending on the Source Type you selected) that contains a value that you want to log.
188
192
189
193
### xWebApplication
190
194
@@ -257,6 +261,7 @@ Please check out common DSC Resources [contributing guidelines](https://github.c
257
261
## Versions
258
262
259
263
### Unreleased
264
+
* Updated **xWebSite** to include ability to manage custom logging fields
0 commit comments