Skip to main content

NGINX Web Server

Modeling Rules for the NGINX Web Server logs collector


This pack includes Cortex XSIAM content.

Configuration on Server Side

You need to configure your Nginx device to forward Syslog messages.

Perform the following in order to configure log forwarding:

  1. Log in to the Nginx device CLI console.
  2. Make sure that the Nginx device is configured to generate error and access logs. The default path to the logs is logs/ (the absolute path depends on the operating system and installation).
  3. Add the below 2 lines to Nginx configuration file:
error_log  syslog:server=<syslog server hostname/IP>:<port>,facility=local7,tag=nginx,severity=error;
access_log syslog:server=<syslog server hostname/IP>:<port>,facility=local7,tag=nginx,severity=info;
  1. In order for the config changes to take effect you need to restart the nginx service.

Note: In order to parse the timestamp correctly, make sure that the timestamp is set to UTC time zone.
The supported time formats are:

  • dd/MMM/yyyy:hh:mm:ss [+|-]nnnn (18/Jul/2021:10:00:00 +0000)
  • yyyy/MM/dd hh:mm:ss (2020/01/19 10:00:00)

More information can be found here

Collect Events from Vendor

In order to use the collector, use the Broker VM option.

Broker VM

To create or configure the Broker VM, use the information described here.

You can configure the specific vendor and product for this instance.

  1. Navigate to Settings > Configuration > Data Broker > Broker VMs.
  2. Right-click, and select Syslog Collector > Configure.
  3. When configuring the Syslog Collector, set the following values:
    • vendor as vendor - nginx
    • product as product - nginx




Cortex XSIAM


CertificationRead more
Supported ByCortex
CreatedJune 14, 2022
Last ReleaseJanuary 23, 2024

Content packs are licensed by the Publisher identified above and subject to the Publisher’s own licensing terms. Palo Alto Networks is not liable for and does not warrant or support any content pack produced by a third-party Publisher, whether or not such packs are designated as “Palo Alto Networks-certified” or otherwise. For more information, see the Marketplace documentation.