Configuring System Logging in Gaia Clish
Description
You can configure the System Logging and Remote System Logging.
System Logging configures the Gaia to sends these logs:
-
Gaia syslog messages to its Check Point Management Server
-
Gaia audit logs upon successful configuration to its Check Point Management Server
-
Gaia audit logs upon successful configuration to Gaia syslog facility
Remote System Logging configures a remote server, to which Gaia sends its syslog messages.
|
Note - There are some command options and parameters, which you cannot configure in the Gaia Portal. |
|
Important:
|
Syntax to Show the Remote Syslog Settings
|

Command |
Description |
---|---|
|
Shows all settings for the remote system logging. |
|
Shows the settings for the remote system logging - only the mode for the audit logs. |
|
Shows the settings for the remote system logging - only the setting for sending syslog messages in Check Point logs. |
|
Shows the messages from the DMESG ring buffer. You can filter the output by a word or a string (case insensitive). |
|
Shows the settings for the remote system logging - only the setting for showing the client IP address in logs. |
|
Shows the settings for the remote system logging - only the name of the main log file. Default: |
|
Shows the settings for the remote system logging - all settings for the specified remote syslog server. |
|
Shows the settings for the remote system logging - a summary table for all configured remote syslog servers. |
|
Shows the messages from the main log file. You can filter the output by a word or a string (case insensitive). |
|
Shows the settings for the remote system logging - only the setting for the sending the audit log messages to the Check Point Management Server. |
|
Shows the settings for the remote system logging - only the paths to the uploaded certificate file, public key file, and private key file. |
|
Shows the settings for the remote system logging - only the mode of the line uncompression. |
Syntax to Add the Remote Syslog Settings
|

Commands and Parameters |
Description |
||
---|---|---|---|
|
Configures a new remote syslog server without the TLS encryption for sent logs. |
||
|
Configures a new remote syslog server with the TLS encryption for sent logs. |
||
|
Specifies the IPv4 address of the remote syslog server. |
||
|
Specifies the IPv6 address of the remote syslog server. |
||
|
Specifies the hostname of the remote syslog server. Gaia OS must be able to resolve this hostname. You can configure an FQDN that your DNS server can resolve. You can configure a static host entry - see Hosts. |
||
|
Specifies the severity level of the logs that are sent to the remote syslog server. These are the accepted values (as defined by the RFC 5424 - Section-6.2.1):
|
||
|
Specifies the port number on the remote syslog server. Range: 1-65535 Default: 514 |
||
|
Specifies the transfer protocol - TCP or UDP (default). If you configure TLS, then protocol is TCP by default. |
||
|
Specifies whether to enable ( If you enable this feature, Gaia OS creates an on-disk queue. If the remote syslog server is down, Gaia OS saves logs messages on a disk and sends them when it is up again |
||
|
Specifies the TLS authentication mode:
|
Syntax to Configure the Existing Remote Syslog Settings
|

Commands and Parameters |
Description |
||
---|---|---|---|
|
Specifies whether to send logs for Gaia OS configuration changes made by authorized users.
|
||
|
Specifies whether to send ( |
||
|
Specifies whether to send ( |
||
|
Configures the path and the name of the main log file. Default: |
||
|
Configures an existing remote syslog server without the TLS encryption for sent logs. |
||
|
Configures an existing remote syslog server with the TLS encryption for sent logs. |
||
|
Specifies whether to send(
|
||
|
Configures the paths to the required files for TLS authentication:
|
||
|
Specifies whether to enable (
|
||
|
Specifies the IPv4 address of the remote syslog server. |
||
|
Specifies the IPv6 address of the remote syslog server. |
||
|
Specifies the hostname of the remote syslog server. Gaia OS must be able to resolve this hostname. You can configure an FQDN that your DNS server can resolve. You can configure a static host entry - see Hosts. |
||
|
Specifies the severity level of the logs that are sent to the remote syslog server. These are the accepted values (as defined by the RFC 5424 - Section-6.2.1):
|
||
|
Specifies the port number on the remote syslog server. Range: 1-65535 Default: 514 |
||
|
Specifies the transfer protocol - TCP or UDP (default). If you configure TLS, then protocol is TCP by default. |
||
|
Specifies whether to enable ( If you enable this feature, Gaia OS creates an on-disk queue. If the remote syslog server is down, Gaia OS saves logs messages on a disk and sends them when it is up again |
||
|
Specifies the TLS authentication mode:
|
Syntax to Delete the Existing Remote Syslog Settings
|

Command |
Description |
---|---|
|
Deletes the configured path for the TLS certificate file. |
|
Deletes the configured path for the TLS private key file. |
|
Deletes the configured path for the TLS public key file. |
Example

gaia> set syslog auditlog permanent gaia> set syslog filename /var/log/system_logs.txt gaia> set syslog mgmtauditlogs on gaia> set syslog cplogs on gaia> set syslog log-remote-address 192.168.2.1 level all gaia> show syslog all Syslog Parameters: Remote Address 192.168.2.1 Levels all Auditlog permanent Destination Log Filename /var/log/system_logs.txt gaia> gaia>show syslog auditlog permanent gaia> gaia> show syslog cplogs Sending syslog syslogs to Check Point's logs is enabled gaia> gaia> show syslog mgmtauditlogs Sending audit logs to Management Serever is enabled gaia> gaia> show syslog filename /var/log/system_logs.txt gaia> |
Syslog configuration files

By default, Gaia Operating System saves the Syslog configuration in these files:
-
/etc/rsyslog.conf
-
/etc/sysconfig/rsyslog
If it is necessary to add specific settings manually in these files (that Gaia OS does not have), then it is necessary to make these files immutable, so Gaia OS does not overwrite them:
-
Connect to the command line on Gaia OS.
-
Log in to the Expert mode.
-
Edit the applicable Syslog configuration file as required in your environment.
-
Examine the current attributes on the applicable configuration file you edited:
-
lsattr /etc/rsyslog.conf
-
lsattr /etc/sysconfig/rsyslog
-
-
Add the immutable attribute on the applicable configuration file you edited:
-
chattr +i /etc/rsyslog.conf
-
chattr +i /etc/sysconfig/rsyslog
-
-
Examine the current attributes on the applicable configuration file you edited:
-
lsattr /etc/rsyslog.conf
-
lsattr /etc/sysconfig/rsyslog
-
-
Restart the Syslog service:
service rsyslog restart
|
Warning - While the Syslog configuration files are immutable:
To remove the immutable attribute from a file, use this command:
|