Hello,
Are there any examples for how to create global fields, and logging formats through powershell?
By looking at: C:\Windows\system32\inetsrv\config\applicationHost.config
I can see the new custom field I manually created:
<field id="http_client_ip" sourceName="Client-IP" sourceType="RequestHeader" logHeaderName="" category="Default" description="" defaultValue="" loggingDataType="TypeLPCSTR" />
How can I insert this and the logDefinition entry
<logField id="http_client_ip" logHeaderName="" required="false" defaultValue="" />