syslog: have syslog generate timestamps (#1585)

This is the more elegant solution to #1579.
This commit is contained in:
Jimmy Zelinskie 2016-06-27 14:35:12 -04:00
parent ab1756306b
commit 2b84888c2f
18 changed files with 18 additions and 52 deletions

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t buildlogsarchiver "$msg"
done
exec logger -i -t buildlogsarchiver

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t buildmanager "$msg"
done
exec logger -i -t buildmanager

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t gcworker "$msg"
done
exec logger -i -t gcworker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t gunicorn_registry "$msg"
done
exec logger -i -t gunicorn_registry

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t gunicorn_secscan "$msg"
done
exec logger -i -t gunicorn_secscan

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t gunicorn_verbs "$msg"
done
exec logger -i -t gunicorn_verbs

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t gunicorn_web "$msg"
done
exec logger -i -t gunicorn_web

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t jwtproxy "$msg"
done
exec logger -i -t jwtproxy

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t logrotateworker "$msg"
done
exec logger -i -t logrotateworker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t nginx "$msg"
done
exec logger -i -t nginx

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t notificationworker "$msg"
done
exec logger -i -t notificationworker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t queuecleanupworker "$msg"
done
exec logger -i -t queuecleanupworker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t repositoryactioncounter "$msg"
done
exec logger -i -t repositoryactioncounter

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t security_notification_worker "$msg"
done
exec logger -i -t security_notification_worker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t securityworker "$msg"
done
exec logger -i -t securityworker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t service_key_worker "$msg"
done
exec logger -i -t service_key_worker

View file

@ -4,6 +4,4 @@
sv check syslog-ng > /dev/null || exit 1
# Start the logger
while read -r msg; do
logger -i -t storagereplication "$msg"
done
exec logger -i -t storagereplication

View file

@ -8,7 +8,7 @@
# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$");
bad_hostname("^gconfd$"); keep-timestamp(no);
};
########################