This blog is owned and operated by the ANZ ConfigMgr Premier Field Engineer team.
Ian BartlettMatt ShadboltGeorge Smpyrakis
“The World Wide Web Publishing Service (WWW Service) did not configure logging for site X. The data field contains the error number.”
This warning will show up in your System event logs and you custom IIS logging to a SQL database won’t work. Obviously the message is fairly cryptic, however in a facepalm sort of moment I worked out what wasn’t working.
Two words. Custom Logging.
Although I had enabled the ODBC logging feature for IIS, I hadn’t enabled custom Logging. Once you enable the custom logging feature your SQL DB will start to fill with log entries. I’ve included the full warning message for those of you unsure.
Thanks Matt, hadn't added Custom Logging Role Service.
If the record in the database does not start when installed ODBC logging and custom logging, it is necessary to check availability CustomLoggingModule setting in module settings page.
Value should be -%windir%\System32\inetsrv\logcust.dll