iis-docs icon indicating copy to clipboard operation
iis-docs copied to clipboard

setting failureDefinitions command returns error like in description not sure how it has to be formatted.

Open itahirov opened this issue 4 years ago • 0 comments

https://docs.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/using-failed-request-tracing-rules-to-troubleshoot-application-request-routing-arr?source=docs#to-configure-failed-request-tracing-rules-using-the-command-line

./appcmd.exe set config "Default Web Site" -section:system.webServer/tracing/traceFailedRequests /[path='*'].failureDefinitions.statusCodes:"200-399"

ERROR ( message:Malformed collection indexer; format is [@position,name='value',name2='value2',...]. The @position specifier is optional, and be '@start', '@end', or '@N' where N is a numeric index into the collection. )

not sure how it has to be formatted and generally there are no files generating in \inetpub\logs\FailedReqLogFiles\ logs directory.

itahirov avatar Jan 14 '21 19:01 itahirov