Sending TufinOS 3.x Logs to a Remote Host

Overview

You can configure the TufinOS rsyslog server to send logs to a remote rsyslog server. By sending the logs to a remote server, you can maintain a large archive of system logs without worrying about how much storage the logs are consuming on the TufinOS server. The remote server can also be used as a backup in cases where hard drive failure causes information to be lost, and it protects the integrity of log data in cases of attacks on the local system.

Configure RSyslog

  1. In the TufinOS Rsyslog server, edit /etc/rsyslog.conf file. Edit the remote host forwarding rule as follows (second line in example below):

    • Uncomment the line.

    • Replace remote-host with the IP address or domain name of the remote rsyslog server.

    • For UDP servers, add one '@' before the IP or Domain name. For TCP servers, leave the two '@@' before the IP or Domain name as is.

    • If the default port of the remote syslog server is not 514, enter the correct port number.

    Before:

    # remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
    #*.* @@remote-host:514
    ### end of the forwarding rule ###

    After:

  2. #remote host: name/ip:port, e.g. 192.168.0.1:514, port optional
    *.*@@<IP or Domain of remote rsyslog server>:514
    ### end of the forwarding rule ###
    
  3. Restart the rsyslog service:

    systemctl restart rsyslog.service
    systemctl restart rsyslog.service