Applications Systems
AppInsight for IIS - Site monitor displays an error Incorrect syntax near ','
The Log Parsing Monitor in AppInsight for IIS throws an Incorrect Syntax Error. Due to this the website and application display in an Unknown Status.
First published date
Last published date
Overview
When polling an IIS Web Server using AppInsight for IIS, the following error is thrown when attempting to poll the Log Parsing Monitor:
Unexpected error occurred. Error while processing component ABIM:xxx,
error details: Incorrect syntax near ','.
Product section
Cause
The cause of this issue is due to the Logging Level on the website not having all the required fields selected.
Resolution
- Open a Remote Desktop to the target Web Server.
- Open IIS Manager with the Server Manager OR via Run > inetmgr.
- Select the affected web site in the left-hand pane.
- Double-click "Logging" in the right-hand pane.
- Click Select Fields.
- Ensure all of the following fields are selected:
- Date
- Time
- URI Stem
- URI Query
- Method
- Client IP Address
- Time Taken
- Click OK.
- Click Apply in the right hand pane under Actions.
- AppInsight for IIS should now be able to poll correctly. It may take a day to poll correctly depending on the Log File Rollover settings in IIS.