summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorSteven A. Falco <sfalco@coincident.com>2012-04-13 15:14:31 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-04-13 15:14:31 +0200
commitd4c048af3e275e90683ae6c49f9c0b2aea9f2f03 (patch)
treea9677702f852c3efa9c6f0551c96b5822cbe005b /runtime/rsyslog.h
parent05efee80c1f9ef74b912d12709919153b8d1440a (diff)
downloadrsyslog-d4c048af3e275e90683ae6c49f9c0b2aea9f2f03.tar.gz
rsyslog-d4c048af3e275e90683ae6c49f9c0b2aea9f2f03.tar.xz
rsyslog-d4c048af3e275e90683ae6c49f9c0b2aea9f2f03.zip
Add a system property, PROP_SYS_UPTIME, to place up-time markers into rsyslog output.
Here is an example template, where this is used: $template CoincidentFileFormat,"[UP=%$uptime%sec] %TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n" and here is an example line of output using the above template: [UP=20sec] Apr 12 21:50:00 atom kernel: imklog 5.8.7, log source = /proc/kmsg started.
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 0922c1bb..baadf322 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -140,6 +140,7 @@ typedef uintTiny propid_t;
#define PROP_CEE 200
#define PROP_CEE_ALL_JSON 201
#define PROP_SYS_BOM 159
+#define PROP_SYS_UPTIME 160
/* The error codes below are orginally "borrowed" from