diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:27:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:27:18 +0000 |
commit | f7f20c3f5e0be02585741f5f54d198689ccd7866 (patch) | |
tree | 190d5e080f6cbcc40560b0ceaccfd883cb3faa01 /source/configuration/modules/ompipe.rst | |
parent | Initial commit. (diff) | |
download | rsyslog-doc-f7f20c3f5e0be02585741f5f54d198689ccd7866.tar.xz rsyslog-doc-f7f20c3f5e0be02585741f5f54d198689ccd7866.zip |
Adding upstream version 8.2402.0+dfsg.upstream/8.2402.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | source/configuration/modules/ompipe.rst | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/source/configuration/modules/ompipe.rst b/source/configuration/modules/ompipe.rst new file mode 100644 index 0000000..1bf581e --- /dev/null +++ b/source/configuration/modules/ompipe.rst @@ -0,0 +1,48 @@ +ompipe: Pipe Output Module +========================== + +**Module Name: ompipe** + +**Author:**\ Rainer Gerhards <rgerhards@adiscon.com> + +**Description**: + +The ompipe plug-in provides the core functionality for logging output to named pipes (fifos). It is a built-in module that does not need to be loaded. + +**Global Configuration Parameters:** + +Note: parameter names are case-insensitive. + +- Template: [templateName] sets a new default template for file actions. + +**Action specific Configuration Parameters:** + +Note: parameter names are case-insensitive. + +- Pipe: string a fifo or named pipe can be used as a destination for log messages. +- tryResumeReopen: Sometimes we need to reopen a pipe after an ompipe action gets suspended. Sending an HUP signal does the job but requires an interaction with rsyslog. When set to "on" and a resume action fails, the file descriptor is closed, causing a new open in the next resume. Default: "off" to preserve existing behavior before introduction of this option. + +**Caveats/Known Bugs:** +None + +**Sample:** +The following command sends all syslog messages to a pipe named "NameofPipe". + +:: + + Module (path="builtin:ompipe") + *.* action(type="ompipe" Pipe="NameofPipe") + +**Legacy Configuration Parameters:** + +rsyslog has support for logging output to named pipes (fifos). A fifo or named pipe can be used as a destination for log messages by prepending a pipe symbol ("|") to the name of the file. This is handy for debugging. Note that the fifo must be created with the mkfifo(1) command before rsyslogd is started. + +**Legacy Sample:** + +The following command sends all syslog messages to a pipe named /var/log/pipe. + +:: + + $ModLoad ompipe + *.* |/var/log/pipe + |