syslog: have syslog generate timestamps (#1585)
This is the more elegant solution to #1579.
This commit is contained in:
parent
ab1756306b
commit
2b84888c2f
18 changed files with 18 additions and 52 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
||||
########################
|
||||
|
|
Reference in a new issue