Integrate with NXLog
In this topic, you will learn how to send Portnox™ Cloud alerts to an on-premises NXLog Community Edition instance.
Before you start:
-
Integrate Portnox Cloud with on-premises Active Directory and install AD Broker.
AD Broker is required to send alerts to an on-premises SIEM solution. It connects with Portnox Cloud, receives log data, and forwards it to an on-premises syslog collector like NXLog. Without AD Broker, the syslog collector on an internal IP would not be reachable.
Note: In an upcoming Portnox Cloud update, a Docker container with the same functionality will replace AD Broker in this setup. This will remove the need to use Active Directory as an authentication repository. -
Download and install NXLog Community Edition on a physical or virtual machine.
Configure NXLog
In this section, you will modify the nxlog.conf file to accept syslog data from Portnox Cloud via AD Broker.
-
Open the nxlog.conf file in a text editor.
- On Windows, the default file location is: C:\Program Files\nxlog\conf\nxlog.conf.
- On Linux, the default file location is: /etc/nxlog/nxlog.conf.
-
Add the following at the end of the nxlog.conf file:
-
Windows:
<Input syslog_tcp> Module im_tcp Host 0.0.0.0 Port 514 Exec parse_syslog(); </Input> <Output file_output> Module om_file File "C:\\Program Files\\nxlog\\data\\received_logs.txt" </Output> <Route syslog_route> Path syslog_tcp => file_output </Route>
-
Linux:
<Input syslog_tcp> Module im_tcp Host 0.0.0.0 Port 514 Exec parse_syslog(); </Input> <Output file_output> Module om_file File "/var/log/nxlog/received_logs.txt" </Output> <Route syslog_route> Path syslog_tcp => file_output </Route>
Note: Adjust the configuration if needed, for example, by changing the file locations or the host IP address/interface. -
-
Restart NXLog:
-
Windows:
next stop nxlog
next start nxlog
-
Linux:
sudo systemctl restart nxlog
-
- Optional:
Check if NXLog is listening on TCP port 514:
-
Windows:
netstat -ano | findstr :514
-
Linux:
sudo netstat -tuln | grep :514
You should see output similar to:
TCP 0.0.0.0:514 0.0.0.0:0 LISTENING
-
Configure Portnox Cloud
In this section, you will learn how to configure Portnox™ Cloud to send alert data to AD Broker and then forward them to the on-premises NXLog syslog listener.
-
In the Cloud portal top menu, click on the Settings option.
-
In the Cloud portal left-hand menu, click on the
option.
-
Create a new SIEM integration.
- Optional:
To configure the types of alerts sent to your SIEM solution, see the following topic: Portnox Cloud alerts.
Note: To learn more about the content and format of alert messages sent to SIEM solutions, see the following topic: Format and content of alert information for SIEM.
You can also send all of the Portnox Cloud activity log (activities performed by administrators in Portnox Cloud) to your SIEM solution. To do this, go to Activity log switch, and click on the Save button.
, activate the
Result: NXLog is receiving alerts from Portnox Cloud.