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
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t buildlogsarchiver
|
||||||
logger -i -t buildlogsarchiver "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t buildmanager
|
||||||
logger -i -t buildmanager "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t gcworker
|
||||||
logger -i -t gcworker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t gunicorn_registry
|
||||||
logger -i -t gunicorn_registry "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t gunicorn_secscan
|
||||||
logger -i -t gunicorn_secscan "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t gunicorn_verbs
|
||||||
logger -i -t gunicorn_verbs "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t gunicorn_web
|
||||||
logger -i -t gunicorn_web "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t jwtproxy
|
||||||
logger -i -t jwtproxy "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t logrotateworker
|
||||||
logger -i -t logrotateworker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t nginx
|
||||||
logger -i -t nginx "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t notificationworker
|
||||||
logger -i -t notificationworker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t queuecleanupworker
|
||||||
logger -i -t queuecleanupworker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t repositoryactioncounter
|
||||||
logger -i -t repositoryactioncounter "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t security_notification_worker
|
||||||
logger -i -t security_notification_worker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t securityworker
|
||||||
logger -i -t securityworker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t service_key_worker
|
||||||
logger -i -t service_key_worker "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -4,6 +4,4 @@
|
||||||
sv check syslog-ng > /dev/null || exit 1
|
sv check syslog-ng > /dev/null || exit 1
|
||||||
|
|
||||||
# Start the logger
|
# Start the logger
|
||||||
while read -r msg; do
|
exec logger -i -t storagereplication
|
||||||
logger -i -t storagereplication "$msg"
|
|
||||||
done
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# First, set some global options.
|
# First, set some global options.
|
||||||
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
|
options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
|
||||||
owner("root"); group("adm"); perm(0640); stats_freq(0);
|
owner("root"); group("adm"); perm(0640); stats_freq(0);
|
||||||
bad_hostname("^gconfd$");
|
bad_hostname("^gconfd$"); keep-timestamp(no);
|
||||||
};
|
};
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
|
Reference in a new issue