Hi ,
I'm new to FreeBSD and I'm trying to make the server to send all the system logs to a remote server and I'm failing because every time I modify the /etc/syslog.conf file and once I restart syslog service
I'm using FreeBSD 11.2-RELEASE-p8 .
I'll be very grateful if someone can help to solve this issue.
I'm new to FreeBSD and I'm trying to make the server to send all the system logs to a remote server and I'm failing because every time I modify the /etc/syslog.conf file and once I restart syslog service
/etc/rc.d/syslogd restart
the /etc/syslog.conf file return to default configuration.I'm using FreeBSD 11.2-RELEASE-p8 .
Code:
cat /etc/syslog.conf
local3.* %/var/log/sshd.log
local4.* %/var/log/rsyncd.log
local5.* %/var/log/smartd.log
ftp.* %/var/log/ftp.log
daemon.* %/var/log/daemon.log
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;mail.info;news.err;local0.none;local7.none %/var/log/system.log
security.* %/var/log/system.log
auth.info;authpriv.info %/var/log/system.log
*.emerg *
. @192.168.2.1:514 ( this is the line i need to add)