The syslog streaming configuration defines the handling of log files. Log messages of managed NG Firewalls can be transmitted to the NG Control Center Syslog service, but they can just as well be transmitted to any other system designed for log file collection or to another Barracuda NG Firewall.
In this article:
Enable the Syslog Service
Enable the Barracuda NG Firewall to stream log files to external syslog devices like the Barracuda NG Control Center or a 3rd party syslog server. When using SSL for log file streaming, export the certificate and key for SSL based authentication.
- Open the Syslog Streaming page (Config > Full Config > Box > Infrastructure Services).
- Click Lock.
- Enable the Syslog service.
- When using SSL for log file streaming, you may require a certificate different from the key and certificate by which the box is routinely identified:
- Select Switch to Advanced View in the left Configuration Mode menu.
- Disable Use Box Certificate/Key.
- Export the certificate and key. This certificate needs to be imported on the destination server for SSL based authentication.
Click Send Changes and Activate.
Configure Logdata Filters
Define profiles specifying the log file types to be transferred / streamed.
- Open the Syslog Streaming page (Config > Full Config > Box > Infrastructure Services).
- In the left Configuration Mode menu, select Switch to Advanced View.
- In the left navigation, select Logdata Filters.
- Click Lock.
- Click the + icon to add a new entry.
- Enter a descriptive name in the Filters dialog and click OK.
- In the Data Selection table, add the log files to be streamed. You can select:
- Fatal_log – Log contents of the fatal log (log instance name: fatal)
- Firewall_Audit_Log – The log contents of the firewall's machine readable audit data stream. Whether data is streamed into the Firewall_Audit_Log has to be configured in the General Firewall Configuration settings on box-level, section Audit Log Handling > Audit-Delivery: Syslog-Proxy (see: FW Audit). The log instance name corresponding to Syslog-Proxy selected will be trans7.
Panic_log – log contents of the panic log (log instance name: panic)
- In the Affected Box Logdata section, define what kind of box logs are to be affected by the syslog daemon from the Data Selection list.
- When chosing Selection (default),
- Click the + icon next to Data Selection to add an entry.
- Enter a descriptive name for the group and click OK. The Data Selection window opens.
- Add the Log Groups for selection or select Other and specify an explicit selection. For more information, see User Defined Log Groups.
- Set a Log Message Filter. When chosing Selection,
- Add the explicit log type to the Selected Message Types table.
- Click OK.
- In the Affected Service Logdata section, define what kind of logs created by services are to be affected by the syslog daemon from the Data Selection list.
- When chosing Selection (default),
- Click the + icon next to Data Selection to add an entry.
- Enter a descriptive name for the group and click OK. The Data Selection window opens.
- In the Log Groups table, add the server and services where log messages are streamed from, or select Other and specify a more granulated selection. For more information, see User Defined Log Groups
- Set a Log Message Filter. When chosing Selection,
- Add the explicit log type to the Selected Message Types table.
- Click OK.
Click Send Changes and Activate.
User Defined Log Groups
For selective syslog streaming a configured logstream destination is required. This can either be a Barracuda NG Control Center or a dedicated 3rd party syslog server. For granulated selection, configure logdata filters, using the Data Selection > Log Groups parameter Other and enter a string up to sample:
Configure Logstream Destinations
Define profiles specifying the transfer/streaming destination of log messages. Log lines from remote systems will be added as they are received but also get their creation time in ISODATE format enclosed in parentheses appended at the end, e.g.: (2013-07-01T18:37:17+00:00). Selecting NG-Firewall as destination will stream the log data to another unit in exactly the same file structure as on the sender system.
- Open the Syslog Streaming page (Config > Full Config > Box > Infrastructure Services).
- In the left Configuration Mode menu, select Switch to Advanced View.
- In the left navigation, select Logstream Destinations.
- Click Lock.
- Click the + icon to add a new entry.
- Enter a descriptive name in the upcoming dialog and click OK. The Destinations window opens.
- Select the Remote Loghost. When an external log host is used,
- Select explicit IP (default).
- Enter the the destination IP address in the Loghost IP Address field.
Enter the destination port for delivering syslog messages. The Barracuda Networks CC syslog service listens on port TCP 5143 for SSL connections and on TCP and UDP port 5144 for unencrypted streaming. The default is to use encryption for delivery, therefore port 5143 is preconfigured.
Select the Transmission Mode (TCP or UDP - default; for SSL connections TCP is automatically set).
- Click OK.
- Click Send Changes and Activate.
You may specify a particular address to be used in order to send the log data.
SSL Encapsulation
The option Use SSL Encapsulation may be turned off when the log stream is transmitted to the Barracuda NG Control Center and the box has a management tunnel to the CC. For CC transmission without box tunnel activating SSL encapsulation is recommended. Note also that transmission to a non-Barracuda NG Firewall system should be SSL encapsulated for reasons of privacy.
SSL Peer Authentication defines the way in which a destination system is authenticated when using SSL based authentication (authentication of the destination server by the box being a client). The list offers the following choices:
verify_peer_with_locally_installed_certificate – (default) The destination system is verified against a locally stored certificate either in the respective destination section or the Barracuda NG Control Center's certificate. This setting is useful when log messages are delivered to a system outside the scope of Barracuda NG Control Centers. For centrally administered Barracuda NG Firewalls this is the only applicable option.
- verify_peer_certificate – The destination system is verified against a locally stored CA certificate.
- no_peer_verification – The peer is considered as trusted without verification. For security reasons this option it is NOT recommended.
Log Data Tagging
The log entities sent to an external log host contain the name and structural information (range/cluster) of the sending box and the name of the log file. With Override Node Name enabled this information can be overridden (default: disabled). If Override Node Name is enabled, specifying an explicit node name is possible. This node name is inserted into each log entity sent to the external log host. The setting Prepend Hierarchy Info allows fine tuning of the prefix which is inserted into each log entity sent to the external log host.
Log files generated on a box are stamped with the local box time. The UTC time offset compared to the local time is recorded though, and can be examined in the TZ column in the log viewer. The UTC time offset information is not included by default when log files are streamed to the Barracuda NG Control Center. Enabling Add UTC Offset adds the UTC time offset information to streamed log files, so that these files may be analyzed uniformly in case the Barracuda NG Control Center collects log files from multiple boxes placed in various time zones.
Configure Logdata Streams
By configuring this section relations between log patterns and log destinations are established. Thus it is possible to make a combination of each log pattern (a sort of filter) and log destination to allow fine granulated target selection.
- Open the Syslog Streaming page (Config > Full Config > Box > Infrastructure Services).
- In the left Configuration Mode menu, select Switch to Advanced View.
- In the left navigation, select Logdata Streams .
- Click the + icon to add a new entry.
- Enter a descriptive name in the upcoming dialog and click OK.
- Configure the following settings:
- Active Streams – This parameter allows you to activate/deactivate the selected log stream profile. By default, for example when creating a new profile, this parameter is set to yes.
- Log Destinations – Here the available log destinations (defined in the section Logstream Destinations) can be selected.
- Log Filters – Here the available log patterns (defined in the section Logdata Filters) can be selected.
Click Send Changes and Activate.