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:

  • Do not configure two Gaia servers to send system logs to each other - directly, or indirectly.

    Such configuration creates a syslog forwarding loop, which causes all syslog messages to repeat indefinitely on both Gaia servers.

  • On Scalable Platforms (ElasticXL, Maestro, and Chassis), you must run the applicable commands in Gaia gClish of the applicable Security Group.

  • After you add, configure, or delete features, run the "save config" command to save the settings permanently. Scalable Platforms save the changes automatically.

Syntax to Show the Remote Syslog Settings

show syslog

      all

      auditlog

      cplogs

      dmesg [search "<String>"]

      enabled-ip

      filename

      log-remote-address <Syslog Server>

      log-remote-addresses

      logs [search "<String>"]

      mgmtauditlogs

      tls-configuration

      uncompressmessages

Syntax to Add the Remote Syslog Settings

add syslog

      log-remote-address {<IPv4 Address> | <IPv6 Address> | <Hostname>}

            level <Logging Level>

            [port <Port>]

            [protocol {tcp | udp}]

            [queuing-mechanism {on | off}]

      log-remote-address-with-tls {<IPv4 Address> | <IPv6 Address> | <Hostname>}

            level <Logging Level>

            [port <Port>]

            auth-mode

                  anon

                  certvalid

                  fingerprint permitted-peers <SHA1 of Fingerprint>

                  name permitted-peers <Common Name (CN)>

            [queuing-mechanism {on | off}]

Syntax to Configure the Existing Remote Syslog Settings

set syslog

      auditlog {disable | permanent}

      cplogs {on | off}

      enabled-ip {on | off}

      filename <Path to Log File>

      log-remote-address {<IPv4 Address> | <IPv6 Address> | <Hostname>}

            [level <Logging Level>]

            [port <Port>]

            [protocol {tcp | udp}]

            [queuing-mechanism {on | off}]

            tls-encryption on

                  auth-mode

                        anon

                        certvalid

                        fingerprint permitted-peers <SHA1 of Fingerprint>

                        name permitted-peers <Common Name (CN)>

      log-remote-address-with-tls {<IPv4 Address> | <IPv6 Address> | <Hostname>}

            [level <Logging Level>]

            [permitted-peers <SHA1 of Fingerprint, or Common Name (CN)>]

            [port <Port>]

            [queuing-mechanism {on | off}]

            tls-encryption off

      mgmtauditlogs {on | off}

      tls-configuration

            ca-cert <Path to Certificate File>

            private-key <Path to Private Key File>

            public-key <Path to Public Key File>

      uncompressmessages {on | off}

Syntax to Delete the Existing Remote Syslog Settings

delete syslog tls-configuration
      ca-cert
      private-key
      public-key

Example

Syslog configuration files