Configuring System Logging in Gaia Clish
Description
You can configure the System Logging and Remote System Logging.
System Logging configures the Gaia Check Point security operating system that combines the strengths of both SecurePlatform and IPSO operating systems. to sends these logs:
-
Gaia syslog messages to its Check Point Management Server
Check Point Single-Domain Security Management Server or a Multi-Domain Security 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 - After you add, configure, or delete features, run the " |

-
To send the Gaia system logs to a Check Point Management Server:
set syslog cplogs {on | off}
-
To send the Gaia configuration audit logs to a Check Point Management Server:
set syslog mgmtauditlogs {on | off}
-
To save the Gaia configuration audit logs:
set syslog auditlog {disable | permanent}
-
To configure the file name of the Gaia configuration audit log:
set syslog filename /<Path>/<File>
-
To show the Gaia system logging configuration:
show syslog
all
auditlog
cplogs
filename
mgmtauditlogs

-
To send Gaia system logs to a remote syslog server:
add syslog log-remote-address <IPv4 Address> level <Severity>
-
To show the Gaia system logging configuration:
show syslog
all
log-remote-address <IPv4 Address>
log-remote-addresses
-
To stop sending Gaia system logs to the specific remote server:
delete syslog log-remote-address <IPv4 Address> [level <Severity>]

Parameter |
Description |
||||
---|---|---|---|---|---|
|
Specifies if the Gaia sends the Gaia system logs to a Check Point Management Server:
Default:
|
||||
|
Specifies if the Gaia sends the Gaia audit logs (for configuration changes that authorized users make) to a Check Point Management Server:
Default:
|
||||
|
Specifies if the Gaia saves the logs for configuration changes that authorized users make:
Default:
|
||||
|
Configures the full path and file name of the system log. Default:
|
||||
|
Configures Gaia to send system logs to a remote syslog server.
|
||||
|
IPv4 address of the remote syslog server, to which Gaia sends its system logs.
|
||||
|
Syslog severity level for the system logging. These are the accepted values (as defined by the RFC 5424 - Section-6.2.1):
|

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> |

By default, Gaia OS saves the Syslog configuration in these files:
-
/etc/syslog.conf
-
/etc/sysconfig/syslog
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/syslog.conf
-
lsattr /etc/sysconfig/syslog
-
-
Add the immutable attribute on the applicable configuration file you edited:
-
chattr +i /etc/syslog.conf
-
chattr +i /etc/sysconfig/syslog
-
-
Examine the current attributes on the applicable configuration file you edited:
-
lsattr /etc/syslog.conf
-
lsattr /etc/sysconfig/syslog
-
-
Restart the Syslog service:
service syslog restart
|
Warning - While the Syslog configuration files are immutable:
To remove the immutable attribute from a file, use this command:
|