summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.1
diff options
context:
space:
mode:
authorRainer Gerhards2015-03-06 15:50:34 +0100
committerKarel Zak2015-03-10 11:19:16 +0100
commitf68b8aa7f5dc1fdf403a2ef64b5dd86f3fdbee95 (patch)
tree2060ed192db4d75f2626281ee03dc2055a612ec8 /misc-utils/logger.1
parentagetty: reload issue on --autologin --login-pause too (diff)
downloadkernel-qcow2-util-linux-f68b8aa7f5dc1fdf403a2ef64b5dd86f3fdbee95.tar.gz
kernel-qcow2-util-linux-f68b8aa7f5dc1fdf403a2ef64b5dd86f3fdbee95.tar.xz
kernel-qcow2-util-linux-f68b8aa7f5dc1fdf403a2ef64b5dd86f3fdbee95.zip
logger: permit to send messages larger than 1024 characters
This is an important capability that has been specified in RFC5424. However, messages larger than 1024 chars are being accepted for years now by at least rsyslog and syslog-ng. This patch adds the option --size to permit setting a new max size, with 1024 being the default. Note that the size limit is only approximative, as we do not take the header size in account (RFC talks about total message length). [[kzak@redhat.com: - add 'S' to getopt_long(), - rename --message-size to --size - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/logger.1')
-rw-r--r--misc-utils/logger.115
1 files changed, 15 insertions, 0 deletions
diff --git a/misc-utils/logger.1 b/misc-utils/logger.1
index e05e99f2a..b73f46a9a 100644
--- a/misc-utils/logger.1
+++ b/misc-utils/logger.1
@@ -86,6 +86,21 @@ execution of
will display MESSAGE field. Use
.B journalctl --output json-pretty
to see rest of the fields.
+.TP
+.BR \-\--size " \fIsize
+Sets the maximum permitted message size to \fIsize\fR. The default
+is 1KiB characters, which is the limit traditionally used and specified
+in RFC 3164. With RFC 5424, this limit has become flexible. A good assumption
+is that RFC 5424 receivers can at least process 4KiB messages.
+
+Most receivers accept larger than 1KiB message over any type of syslog
+protocol. As such, the \fB\-\-size\fR option affects logger in
+all cases (not only when \fB\-\-rfc5424\fR was used).
+
+Note: the message size limit is not totally strict. It limits only
+the user data, the size of the syslog header is not considered. While
+this can lead to some truncation at the receiver level, a consistent limit
+based on the user data size is generally wanted.
.TP
.BR \-n , " \-\-server " \fIserver