docs: Fix for syslog-ng config in the docs (#8160)

* fix for syslog-ng config

I guess it didn't copy over correctly the last fix. It was reported to not be working I tested this and seems to be okay now at the time. It was showing 00:00 00 0000

* Update Syslog.md
This commit is contained in:
Kevin Krumm
2018-01-29 14:56:04 -06:00
committed by Neil Lathwood
parent d63fbd0902
commit a7fe7191ae

View File

@@ -45,24 +45,24 @@ options {
bad_hostname("^gconfd$");
};
source s_sys {
system();
internal();
};
source s_net {
tcp(port(514) flags(syslog-protocol));
udp(port(514) flags(syslog-protocol));
};
########################
# Destinations
########################
destination d_librenms {
program("/opt/librenms/syslog.php" template ("$HOST||$FACILITY||$PRIORITY||$LEVEL||$TAG||$R_YEAR-$R_MONTH-$R_DAY$R_HOUR:$R_MIN:$R_SEC||$MSG||$PROGRAM\n") template-escape(yes));
program("/opt/librenms/syslog.php" template ("$HOST||$FACILITY||$PRIORITY||$LEVEL||$TAG||$R_YEAR-$R_MONTH-$R_DAY $R_HOUR:$R_MIN:$R_SEC||$MSG||$PROGRAM\n") template-escape(yes));
};
filter f_kernel { facility(kern); };