Guide: How to log to Synology
Posted: Sunday 17 April 2016 22:48
Please find below a few steps to get logging to the loggingcenter of a Synology working. It's pretty simple, it just takes 3 steps. I know there are a few wiki's already created for this purpose, but I could not make it work using those wiki''s. So maybe the below is helpful for someone;
1. Check if the Log Center is installed on the NAS.
2. At the following line to the Domoticz startup script, and restart Domoticz : /etc/init.d/domoticz.sh
DAEMON_ARGS="-loglevel 0 -syslog local1 -daemon -www 8080"
My daemon section looks like this, changed are marked bold;
DAEMON=/home/$USERNAME/domoticz/$NAME
#DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
#DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
DAEMON_ARGS="-loglevel 0 -syslog local1 -daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
3. Make a change in the rsyslog service config file
Jump to /etc/
And edit rsyslog.conf
add the following just above the Global Directives section, where ip is the ip of the Synology. After the below is added restart the rsys service, and have a look on you NAS, info should flow in already. That's all!
*.* @ip:514
1. Check if the Log Center is installed on the NAS.
2. At the following line to the Domoticz startup script, and restart Domoticz : /etc/init.d/domoticz.sh
DAEMON_ARGS="-loglevel 0 -syslog local1 -daemon -www 8080"
My daemon section looks like this, changed are marked bold;
DAEMON=/home/$USERNAME/domoticz/$NAME
#DAEMON_ARGS="-daemon"
#DAEMON_ARGS="$DAEMON_ARGS -daemonname $NAME -pidfile $PIDFILE"
#DAEMON_ARGS="$DAEMON_ARGS -www 8080"
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443"
DAEMON_ARGS="-loglevel 0 -syslog local1 -daemon -www 8080"
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
3. Make a change in the rsyslog service config file
Jump to /etc/
And edit rsyslog.conf
add the following just above the Global Directives section, where ip is the ip of the Synology. After the below is added restart the rsys service, and have a look on you NAS, info should flow in already. That's all!
*.* @ip:514