AQUILA - Zyxel USG Flex 200 SIEM Integration

AQUILA - Zyxel USG Flex 200 Integration

The Zyxel USG Flex 200 is a unified security gateway that provides comprehensive network security and management capabilities. It generates syslog events that can be collected, analyzed, and monitored for security insights and network performance monitoring. This integration enables centralized log collection from Zyxel USG devices for visualization and analysis.


Integration Overview

This integration supports event collection through:


Compatibility


Syslog Server Configuration

Installing Syslog-ng:

Install the syslog-ng package on your log collection server:

sudo apt-get install syslog-ng

image.png

Configuring Syslog-ng:

Edit the syslog-ng configuration file:

sudo nano /etc/syslog-ng/syslog-ng.conf

image.png

Add the following configuration blocks:

Define the syslog source to listen for UDP traffic on IP address <IP_Address_of_Log_Source_Server> and port 514:

Replace <IP_Address_of_Log_Source_Server> to the actual IP Address of Syslog-ng Server:

source s_net { udp(ip(<IP_Address_of_Log_Source_Server>) port(514)); };

Create a filter to match traffic from the Zyxel device (this filter catches all syslog messages from the Zyxel Firewall):

replace <IP_Address_of_Zyxel_Firewall> to the actual IP Address of Zyxel Firewall:

filter f_zyxel { host( "<IP_Address_of_Zyxel_Firewall>" ); };

Define a destination file for the syslog messages:

destination df_zyxel { file("/var/log/zyxel.log"); };

Bundle the source, filter, and destination rules together with a logging rule:

log { source ( s_net ); filter( f_zyxel ); destination ( df_zyxel ); };

Restart the syslog-ng service to apply changes:

sudo /etc/init.d/syslog-ng restart

image.png

Full code snippet:

source s_net { udp(ip(<IP_Address_of_Log_Source_Server>) port(514)); };
filter f_zyxel { host( "<IP_Address_of_Zyxel_Firewall>" ); };
destination df_zyxel { file("/var/log/zyxel.log"); };
log { source ( s_net ); filter( f_zyxel ); destination ( df_zyxel ); };

image.png


Zyxel USG Flex 200 Device Configuration

Follow these steps to configure the Zyxel USG Flex 200 to send syslog messages to your log collection server:

Step 1: Log in to the Zyxel USG Flex 200 Firewall web interface.

Step 2: Navigate to Configuration > Log & Report > Log Settings > Remote Server 4.

Step 3: Click Edit to configure the remote log server settings.

image.png

Step 4: Configure the following log settings for Remote Server:

Step 5: Click Apply or Save to apply the configuration changes.

Step 6: Verify that syslog messages are being sent to the remote server by checking the log file on your Syslog server:

sudo tail -f /var/log/zyxel.log

image.png


Log Rotation Configuration

To manage log file sizes and prevent disk space issues, configure log rotation for Zyxel logs.

Create a logrotate configuration file:

sudo nano /etc/logrotate.d/zyxel

Paste the following configuration to the file:

/var/log/zyxel.log {
    daily               # Rotate logs every day
    missingok           # If the log file is missing, don't complain
    rotate 7            # Keep the last 7 days' worth of logs
    compress            # Compress old log files (e.g., .gz format)
    delaycompress       # Delay compression of the previous log file until the next rotation
    notifempty          # Do not rotate the log if it's empty
    create 0640 root root  # Create a new log file with permissions and ownership
    postrotate
        # Optional: You can add commands to run after log rotation, like restarting syslog
        # For example, to reload syslog:
        # /etc/init.d/syslog-ng reload
        # Or for rsyslog:
        # systemctl reload rsyslog
    endscript
}

image.png

Testing Log Rotation:

To verify the log rotation configuration is working correctly:

sudo logrotate --debug /etc/logrotate.d/zyxel

image.png


Log Events

Here are the types of events you might find in the event log of a Zyxel UFG Flex 200, categorized by their typical nature:


Logs Dataset

The zyxel.log dataset contains events collected from the configured syslog-ng server. All Zyxel USG Flex 200 specific syslog fields are available under the /var/log/zyxel.log file for detailed analysis and security monitoring.

sample data logs:

Jan 19 18:45:26 192.168.20.1 CEF:0|ZyXEL|USG FLEX 200|5.39(ABUI.1)|0|Traffic Log|4|devID=d8xxxxx40 src=1xx.1xx.xx.xx dst=4xx.xxx.2xxx.xxx spt=62126 dpt=123 dvchost=usgflex200 msg=Traffic Log cat=Traffic Log sourceTranslatedAddress=1xx.xx.xxxx.xxxx sourceTranslatedPort=6xxxx6 suser=unknown ZYduration=300 out=76 in=76 proto=17 app=others ZYnote=Traffic Log ZYdir=RND:EASTERN-2 deviceInboundInterface=RND deviceOutboundInterface=EASTERN-2 ZYmac=xx:xx:xx:xx:xx:24



If you need further assistance, kindly contact our support at support@cytechint.com for prompt assistance and guidance. 


Revision #4
Created 20 January 2026 08:43:39 by Benjie Janlay Jr.
Updated 17 March 2026 22:28:46 by Benjie Janlay Jr.