Hi all
I have seen the command below in use but I am trying to find out what command I need to run to obtain all the <logfile> nodes.
Basically I need to retrieve that info for all sites and the server which I think is the <siteDefault> node below. I just need to list all the IIS fields that we use for logging. Apparently the "appcmd list config" is not an option.
Here is a command that SETs the values but I need to list the values:
appcmd set config /section:sites /[id='1'].logFile.logExtFileFlags:HttpSubStatus,Host,Time,Date
<siteDefaults>
<logFile logExtFileFlags="Date, Time, ClientIP, UserName, SiteName, ComputerName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, BytesSent, BytesRecv, TimeTaken, ServerPort, UserAgent, Cookie, ProtocolVersion, Host, HttpSubStatus" logFormat="W3C"
directory="%SystemDrive%\inetpub\logs\LogFiles" enabled="true" />
<traceFailedRequestsLogging directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles" />
</siteDefaults>
Any ideas?
Thanks, Max