summaryrefslogtreecommitdiffstats
path: root/doc/rsyslog_recording_pri.html
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-10-20 12:08:38 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-10-20 12:08:38 +0200
commit599a493cac7b067d34cba549c60f2d5bea9333b8 (patch)
treea95423d38b33e9ba74c7f7e08faa5b1152adf930 /doc/rsyslog_recording_pri.html
parentbea330746cd07ce08f9d5d062924bf2c5195d6ee (diff)
parenteb87d6f095cc5e72126d8b7716d217a7d6a5e939 (diff)
downloadrsyslog-599a493cac7b067d34cba549c60f2d5bea9333b8.tar.gz
rsyslog-599a493cac7b067d34cba549c60f2d5bea9333b8.tar.xz
rsyslog-599a493cac7b067d34cba549c60f2d5bea9333b8.zip
Merge branch 'v4-stable' into v5-stable
Diffstat (limited to 'doc/rsyslog_recording_pri.html')
-rw-r--r--doc/rsyslog_recording_pri.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/rsyslog_recording_pri.html b/doc/rsyslog_recording_pri.html
index cf11e3e5..a092980c 100644
--- a/doc/rsyslog_recording_pri.html
+++ b/doc/rsyslog_recording_pri.html
@@ -44,13 +44,13 @@ from the syslog message when output is written. Everything outside of the
percent signs is literal text, which is simply written as specified.</p>
<p>Thankfully, rsyslog provides message properties for the priority. These are
called &quot;PRI&quot;, &quot;syslogfacility&quot; and &quot;syslogpriority&quot; (case is important!). They are numerical
-values. Starting with rsyslog 1.13.4, there is also a property &quot;PRI-text&quot;, which
-contains the priority in friendly text format (e.g. &quot;syslog.info&quot;). For the rest
+values. Starting with rsyslog 1.13.4, there is also a property &quot;pri-text&quot;, which
+contains the priority in friendly text format (e.g. &quot;local0.err<133>&quot;). For the rest
of this article, I assume that you run version 1.13.4 or higher.</p>
<p>Recording the priority is now a simple matter of adding the respective field
to the template. It now looks like this:</p>
<p align="center">
-<code>$template TraditionalFormatWithPRI,&quot;%PRI-text%: %timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n&quot;</code>
+<code>$template TraditionalFormatWithPRI,&quot;%pri-text%: %timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n&quot;</code>
</p>
<p>Now we have the right template - but how to write it to a file? You probably
have a line like this in your syslog.conf:</p>