[PATCH] examples: Fix syslog LOGSCRIPT

From: Olivier Brunel <jjk_at_jjacky.com>
Date: Tue, 3 Mar 2015 23:34:45 +0100

Log lines are actually prefixed with uids from $IPCREMOTEEUID & $IPCREMOTEEGID,
so they should be acocunted for in the regexs.

Signed-off-by: Olivier Brunel <jjk_at_jjacky.com>
---
Also note the need to use \s because, AFAIK, there's no way to use spaces in the
regex then, as space is a delimiter for splitting. This is probably important
enough to be noted alongside in some README in fact, since that's why I've
personally kept them in the run file.
 .../ROOT/img/services-local/syslogd-linux/log/env/LOGSCRIPT    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGSCRIPT b/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGSCRIPT
index 65c53e6..e7a1eb7 100644
--- a/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGSCRIPT
+++ b/examples/ROOT/img/services-local/syslogd-linux/log/env/LOGSCRIPT
_at_@ -1,6 +1,6 @@
-- +^error\. t /var/log/syslogd/error 
-- +^authpriv\. t /var/log/syslogd/auth 
-- +^user\. t /var/log/syslogd/user 
-- +^messages\. t /var/log/syslogd/messages 
-- +^daemon\. t /var/log/syslogd/daemon 
+- +^[0-9]+:\s[0-9]+:\serror\. t /var/log/syslogd/error
+- +^[0-9]+:\s[0-9]+:\sauthpriv\. t /var/log/syslogd/auth
+- +^[0-9]+:\s[0-9]+:\suser\. t /var/log/syslogd/user
+- +^[0-9]+:\s[0-9]+:\smessages\. t /var/log/syslogd/messages
+- +^[0-9]+:\s[0-9]+:\sdaemon\. t /var/log/syslogd/daemon
 f t /var/log/syslogd/misc
-- 
2.3.1
Received on Tue Mar 03 2015 - 22:34:45 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC