From 9900fbe2e85f39b999f50d2ba4463d507f731f4c Mon Sep 17 00:00:00 2001 From: Florian Riedl Date: Tue, 24 Jul 2012 12:54:56 +0200 Subject: doc: improved doc for built-in modules --- doc/Makefile.am | 4 + doc/omfile.html | 167 ++++++++++++++++++++++++++++++++++++++++++ doc/omfwd.html | 118 +++++++++++++++++++++++++++++ doc/ompipe.html | 62 ++++++++++++++++ doc/omusrmsg.html | 64 ++++++++++++++++ doc/rsyslog_conf_global.html | 48 ++++++------ doc/rsyslog_conf_modules.html | 4 + 7 files changed, 443 insertions(+), 24 deletions(-) create mode 100644 doc/omfile.html create mode 100644 doc/omfwd.html create mode 100644 doc/ompipe.html create mode 100644 doc/omusrmsg.html (limited to 'doc') diff --git a/doc/Makefile.am b/doc/Makefile.am index 04fda6b3..cc1a3209 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -31,6 +31,10 @@ html_files = \ version_naming.html \ contributors.html \ dev_queue.html \ + ompipe.html \ + omfwd.html \ + omfile.html \ + omusrmsg.html \ omstdout.html \ omudpspoof.html \ omruleset.html \ diff --git a/doc/omfile.html b/doc/omfile.html new file mode 100644 index 00000000..bdd1ebc6 --- /dev/null +++ b/doc/omfile.html @@ -0,0 +1,167 @@ + + + +File Output Module + + +back + +

File Output Module

+

Module Name:    omfile

+

Author: Rainer Gerhards <rgergards@adiscon.com>

+

Description:

+

The omfile plug-in provides the core functionality of writing messages to files residing inside the local file system (which may actually be remote if methods like NFS are used). Both files named with static names as well files with names based on message content are supported by this module. It is a built-in module that does not need to be loaded.

+

 

+ +

Global Configuration Directives:

+ +

 

+

Action specific Configuration Directives:

+ +

Caveats/Known Bugs:

+

Sample:

+

The following command writes all syslog messages into a file.

+ + +

+ +

Legacy Configuration Directives:

+ + +

Legacy Sample:

+

The following command writes all syslog messages into a file.

+ + + +

[rsyslog.conf overview] [manual +index] [rsyslog site]

+

This documentation is part of the +rsyslog project.
+Copyright © 2008 by Rainer Gerhards and +Adiscon. Released under the GNU GPL +version 3 or higher.

+ + diff --git a/doc/omfwd.html b/doc/omfwd.html new file mode 100644 index 00000000..5599ae39 --- /dev/null +++ b/doc/omfwd.html @@ -0,0 +1,118 @@ + + + +Forwarding Output Module + + +back + +

Forwarding Output Module

+

Module Name:    omfwd

+

Author: Rainer Gerhards <rgergards@adiscon.com>

+

Description:

+

The omfwd plug-in provides the core functionality of traditional message forwarding via UDP and plain TCP. It is a built-in module that does not need to be loaded.

+

 

+ +

Global Configuration Directives:

+ +

 

+

Action specific Configuration Directives:

+ +

Caveats/Known Bugs:

+

Sample:

+

The following command sends all syslog messages to a remote server via TCP port 10514.

+ + +

+ +

Legacy Configuration Directives:

+ + +

Legacy Sample:

+

The following command sends all syslog messages to a remote server via TCP port 10514.

+ + + +

[rsyslog.conf overview] [manual +index] [rsyslog site]

+

This documentation is part of the +rsyslog project.
+Copyright © 2008 by Rainer Gerhards and +Adiscon. Released under the GNU GPL +version 3 or higher.

+ + diff --git a/doc/ompipe.html b/doc/ompipe.html new file mode 100644 index 00000000..49915b78 --- /dev/null +++ b/doc/ompipe.html @@ -0,0 +1,62 @@ + + + +Pipe Output Module + + +back + +

Pipe Output Module

+

Module Name:    omfwd

+

Author: Rainer Gerhards <rgergards@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 Directives:

+ +

 

+

Action specific Configuration Directives:

+ +

Caveats/Known Bugs:

+

Sample:

+

The following command sends all syslog messages to a remote server via TCP port 10514.

+ + +

+ +

Legacy Configuration Directives:

+

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 remote server via TCP port 10514.

+ + + +

[rsyslog.conf overview] [manual +index] [rsyslog site]

+

This documentation is part of the +rsyslog project.
+Copyright © 2008 by Rainer Gerhards and +Adiscon. Released under the GNU GPL +version 3 or higher.

+ + diff --git a/doc/omusrmsg.html b/doc/omusrmsg.html new file mode 100644 index 00000000..eccfef2d --- /dev/null +++ b/doc/omusrmsg.html @@ -0,0 +1,64 @@ + + + +User Message Output Module + + +back + +

User Message Output Module

+

Module Name:    omusrmsg

+

Author: Rainer Gerhards <rgergards@adiscon.com>

+

Description:

+

The omusrmsg plug-in provides the core functionality for logging output to a logged on user. It is a built-in module that does not need to be loaded.

+

 

+ +

Global Configuration Directives:

+ +

 

+

Action specific Configuration Directives:

+ +

Caveats/Known Bugs:

+

Sample:

+

The following command sends all critical syslog messages to a user and to root.

+ + +

+ +

Legacy Configuration Directives:

+

+ No specific configuration directives available. See configuration sample below for details on using the plugin. +

+ +

Legacy Sample:

+

The following command sends all critical syslog messages to a user and to root.

+ + + +

[rsyslog.conf overview] [manual +index] [rsyslog site]

+

This documentation is part of the +rsyslog project.
+Copyright © 2008 by Rainer Gerhards and +Adiscon. Released under the GNU GPL +version 3 or higher.

+ + diff --git a/doc/rsyslog_conf_global.html b/doc/rsyslog_conf_global.html index 6c20f4c2..a4d760eb 100644 --- a/doc/rsyslog_conf_global.html +++ b/doc/rsyslog_conf_global.html @@ -52,10 +52,10 @@ This directive will timeout previous messages seen if they are older than 20 minutes. In the example above, the count would now be always 1 and consequently no rule would ever be triggered. -
  • $ActionFileDefaultTemplate [templateName] - sets a new default template for file actions
  • -
  • $ActionFileEnableSync [on/off] - enables file +
  • $ActionFileDefaultTemplate [templateName] - sets a new default template for file actions
  • +
  • $ActionFileEnableSync [on/off] - enables file syncing capability of omfile
  • -
  • $ActionForwardDefaultTemplate [templateName] - sets a new +
  • $ActionForwardDefaultTemplate [templateName] - sets a new default template for UDP and plain TCP forwarding action
  • $ActionGSSForwardDefaultTemplate [templateName] - sets a new default template for GSS-API forwarding action
  • @@ -93,23 +93,23 @@ default 60000 (1 minute)]
  • $ActionQueueWorkerThreadMinumumMessages <number>, default 100
  • $ActionResumeInterval
  • $ActionResumeRetryCount <number> [default 0, -1 means eternal]
  • -
  • $ActionSendResendLastMsgOnReconnect <[on/off]> specifies if the last message is to be resend when a connecition breaks and has been reconnected. May increase reliability, but comes at the risk of message duplication. -
  • $ActionSendStreamDriver <driver basename> just like $DefaultNetstreamDriver, but for the specific action
  • -
  • $ActionSendStreamDriverMode <mode>, default 0, mode to use with the stream driver (driver-specific)
  • -
  • $ActionSendStreamDriverAuthMode <mode>,  authentication mode to use with the stream driver. Note that this directive requires TLS +
  • $ActionSendResendLastMsgOnReconnect <[on/off]> specifies if the last message is to be resend when a connecition breaks and has been reconnected. May increase reliability, but comes at the risk of message duplication. +
  • $ActionSendStreamDriver <driver basename> just like $DefaultNetstreamDriver, but for the specific action
  • +
  • $ActionSendStreamDriverMode <mode>, default 0, mode to use with the stream driver (driver-specific)
  • +
  • $ActionSendStreamDriverAuthMode <mode>,  authentication mode to use with the stream driver. Note that this directive requires TLS netstream drivers. For all others, it will be ignored. (driver-specific)
  • -
  • $ActionSendStreamDriverPermittedPeer <ID>,  accepted fingerprint (SHA1) or name of remote peer. Note that this directive requires TLS +
  • $ActionSendStreamDriverPermittedPeer <ID>,  accepted fingerprint (SHA1) or name of remote peer. Note that this directive requires TLS netstream drivers. For all others, it will be ignored. (driver-specific) - directive may go away!
  • -
  • $ActionSendTCPRebindInterval nbr- [available since 4.5.1] - instructs the TCP send +
  • $ActionSendTCPRebindInterval nbr- [available since 4.5.1] - instructs the TCP send action to close and re-open the connection to the remote host every nbr of messages sent. Zero, the default, means that no such processing is done. This directive is useful for use with load-balancers. Note that there is some performance overhead associated with it, so it is advisable to not too often "rebind" the connection (what "too often" actually means depends on your configuration, a rule of thumb is that it should be not be much more often than once per second).
  • -
  • $ActionSendUDPRebindInterval nbr- [available since 4.3.2] - instructs the UDP send +
  • $ActionSendUDPRebindInterval nbr- [available since 4.3.2] - instructs the UDP send action to rebind the send socket every nbr of messages sent. Zero, the default, means that no rebind is done. This directive is useful for use with load-balancers.
  • $ActionWriteAllMarkMessages [on/off]- [available since 5.1.5] - normally, mark messages @@ -133,22 +133,22 @@ functionality. the provided name (the default default ruleset is named "RSYSLOG_DefaultRuleset"). It is advised to also read our paper on using multiple rule sets in rsyslog.
  • -
  • $CreateDirs [on/off] - create directories on an as-needed basis
  • -
  • $DirCreateMode
  • -
  • $DirGroup
  • -
  • $DirOwner
  • +
  • $CreateDirs [on/off] - create directories on an as-needed basis
  • +
  • $DirCreateMode
  • +
  • $DirGroup
  • +
  • $DirOwner
  • $DropMsgsWithMaliciousDnsPTRRecords
  • $DropTrailingLFOnReception
  • -
  • $DynaFileCacheSize
  • +
  • $DynaFileCacheSize
  • $Escape8BitCharactersOnReceive
  • $EscapeControlCharactersOnReceive
  • $EscapeControlCharactersOnReceive [on|off] - escape USASCII HT character
  • $SpaceLFOnReceive [on/off] - instructs rsyslogd to replace LF with spaces during message reception (sysklogd compatibility aid)
  • $ErrorMessagesToStderr [on|off] - direct rsyslogd error message to stderr (in addition to other targets)
  • -
  • $FailOnChownFailure
  • -
  • $FileCreateMode
  • -
  • $FileGroup
  • -
  • $FileOwner
  • +
  • $FailOnChownFailure
  • +
  • $FileCreateMode
  • +
  • $FileGroup
  • +
  • $FileOwner
  • $GenerateConfigGraph
  • $GssForwardServiceName
  • $GssListenServiceName
  • @@ -224,7 +224,7 @@ supported in order to be compliant to the upcoming new syslog RFC series.
  • $MaxOpenFiles
  • $ModDir
  • $ModLoad
  • -
  • $OMFileAsyncWriting [on/off], if turned on, the files will be written +
  • $OMFileAsyncWriting [on/off], if turned on, the files will be written in asynchronous mode via a separate thread. In that case, double buffers will be used so that one buffer can be filled while the other buffer is being written. Note that in order to enable $OMFileFlushInterval, $OMFileAsyncWriting must be set to "on". Otherwise, the flush @@ -232,11 +232,11 @@ interval will be ignored. Also note that when $OMFileFlushOnTXEnd is "on" but $OMFileAsyncWriting is off, output will only be written when the buffer is full. This may take several hours, or even require a rsyslog shutdown. However, a buffer flush can be forced in that case by sending rsyslogd a HUP signal. -
  • $OMFileZipLevel 0..9 [default 0] - if greater 0, turns on gzip compression +
  • $OMFileZipLevel 0..9 [default 0] - if greater 0, turns on gzip compression of the output file. The higher the number, the better the compression, but also the more CPU is required for zipping.
  • -
  • $OMFileIOBufferSize <size_nbr>, default 4k, size of the buffer used to writing output data. The larger the buffer, the potentially better performance is. The default of 4k is quite conservative, it is useful to go up to 64k, and 128K if you used gzip compression (then, even higher sizes may make sense)
  • -
  • $OMFileFlushOnTXEnd <[on/off]>, default on. Omfile has the +
  • $OMFileIOBufferSize <size_nbr>, default 4k, size of the buffer used to writing output data. The larger the buffer, the potentially better performance is. The default of 4k is quite conservative, it is useful to go up to 64k, and 128K if you used gzip compression (then, even higher sizes may make sense)
  • +
  • $OMFileFlushOnTXEnd <[on/off]>, default on. Omfile has the capability to write output using a buffered writer. Disk writes are only done when the buffer is full. So if an error happens during that write, data is potentially lost. In cases where @@ -246,7 +246,7 @@ error recovery thus can handle write errors without data loss. Note that this op severely reduces the effect of zip compression and should be switched to off for that use case. Note that the default -on- is primarily an aid to preserve the traditional syslogd behaviour.
  • -
  • $omfileForceChown - force ownership change for all files
  • +
  • $omfileForceChown - force ownership change for all files
  • $RepeatedMsgContainsOriginalMsg [on/off] - "last message repeated n times" messages, if generated, have a different format that contains the message that is being repeated. Note that only the first "n" characters are included, with n to be at least 80 characters, most diff --git a/doc/rsyslog_conf_modules.html b/doc/rsyslog_conf_modules.html index 650e20ad..cbd60faf 100644 --- a/doc/rsyslog_conf_modules.html +++ b/doc/rsyslog_conf_modules.html @@ -51,6 +51,10 @@ to message generators.

    Output modules process messages. With them, message formats can be transformed and messages be transmitted to various different targets.