Verified Commit a7bc03d9 authored by JimmyS83's avatar JimmyS83 Committed by Jan Pavlinec
Browse files

syslog-ng3: Fix time inconsistency and more friendly timestamp format.

Pull https://github.com/CZ-NIC/turris-os-packages/pull/48
Issue https://gitlab.labs.nic.cz/turris/turris-os-packages/issues/181

Signed-off-by: Jan Pavlinec's avatarJan Pavlinec <jan.pavlinec@nic.cz>
parent 58404ed7
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=3.10.1
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE_URL:=https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$(PKG_VERSION)/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
......
......@@ -22,7 +22,7 @@ filter f_turris_iptables {
};
destination messages {
file("/var/log/messages" suppress(5) template("${ISODATE} ${PRIORITY} ${PROGRAM}[${PID}]: ${MSGONLY}\n") log_fifo_size(256));
file("/var/log/messages" suppress(5) template("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC} ${PRIORITY} ${PROGRAM}[${PID}]: ${MSGONLY}\n") log_fifo_size(256));
};
log {
......
......@@ -22,9 +22,11 @@ filter f_turris_iptables {
};
destination messages {
file("/var/log/messages" suppress(5) template("${ISODATE} ${PRIORITY} ${PROGRAM}[${PID}]: ${MSGONLY}\n") log_fifo_size(256));
file("/var/log/messages" suppress(5) template("${R_YEAR}-${R_MONTH}-${R_DAY} ${R_HOUR}:${R_MIN}:${R_SEC} ${PRIORITY} ${PROGRAM}[${PID}]: ${MSGONLY}\n") log_fifo_size(256));
};
log {
source(src);
source(kernel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment