How to setup syslog-ng in SynetoOS 4

Written By Christian Castagna (Administrator)

Updated at March 25th, 2025

→ Applies to: SynetoOS 4.x

 

Step 1. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 2. Remove bash_profile

rm ~admin/.bash_profile

After running the command, you need to perform logout and login again.

 

Step 3. Edit “plugin.conf” file

vi /usr/share/syslog-ng/include/scl/syneto/plugin.conf

 

Step 4. Modify the ‘destination remote’ line by setting the IP address and port number of the receiving server

EXAMPLE

destination remote { network("192.168.52.10" transport("udp") port(514));};

 

Step 5. Add the following line in the exact position shown in the following screenshot

EXAMPLE

log { source(s_local); filter(f_audit); destination(remote);};

 

Step 6. Restart the syslog-ng service

svcadm restart svc:/system/syslog-ng:default