diff options
author | Steven A. Falco <sfalco@coincident.com> | 2012-04-13 15:14:31 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-04-13 15:14:31 +0200 |
commit | d4c048af3e275e90683ae6c49f9c0b2aea9f2f03 (patch) | |
tree | a9677702f852c3efa9c6f0551c96b5822cbe005b /tests/tcp-msgreduc-vg.sh | |
parent | 05efee80c1f9ef74b912d12709919153b8d1440a (diff) | |
download | rsyslog-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 'tests/tcp-msgreduc-vg.sh')
0 files changed, 0 insertions, 0 deletions