When you configure Microsoft IIS to send logs through NXLog to USM Anywhere, you can use the Windows IIS NXLog plugin to translate the raw log data into normalized events for analysis.
|Device type||Web server|
|Vendor link||Collecting Windows System Logs|
Integrating Microsoft IIS and NXLog
Before you configure Microsoft IIS to send logs to USM Anywhere through NXLog, you need to configure logging on IIS first.
Configure Logging in IIS
To configure Logging at the server level
- Open IIS Manager.
- In the Connections tab, select the server and double-click the Logging icon.
- Under One log file per, select Site.
Under Log File, click Select Fields to choose the information you want to log.
Make sure to match the screenshot below because the plugin will look for these fields.
If using the IIS-NXLOG-Extended configuration provided by AlienVault (See "Configure NXLog" below for more information), you also need to
- Select Bytes Sent (sc-bytes), Bytes Received (cs-bytes), and Host (cs-host).
- Add the x-forwarded-for field. Click Add Field and fill in the information as shown.
- Click Apply.
Before you configure the integration, you must have the IP Address of the USM Anywhere Sensor.
To configure NXLog to send log data to USM Anywhere
In the NXLog configuration file, AlienVault includes two different sections for IIS, IIS-NXLOG and IIS-NXLOG-Extended, with the latter collecting some additional fields from the IIS log. These fields include cs-host, sc-bytes, cs-bytes, and x-forwarder-for. Uncomment the section containing the fields you want to collect.
Important: Do not uncomment both sections because it will generate duplicate events in USM Anywhere.
The Windows IIS NXLog plugin will automatically process all messages when the raw message contains SourceModuleName":"IIS_Logs, SourceModuleName":"IIS_IN, or SourceModuleName":"IIS_Extended_IN.
Available Plugin Fields
The following plugin fields are important attributes extracted from the syslog message. USM Anywhere reports use these fields, and you can also reference them when creating custom reports. In addition to reporting, the USM Anywhere correlation rules make use of these fields.
For troubleshooting, refer to the vendor documentation: