summaryrefslogtreecommitdiff
path: root/doc/omfile.html
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-03-13 17:58:53 +0100
committerMichael Biebl <biebl@debian.org>2014-03-13 17:58:53 +0100
commitf984a7a098a47b0c44f4702c9f7ca8a31a822ab5 (patch)
treea7d5e9a169a07fbd079ac6baec85d834a78c7444 /doc/omfile.html
parentfd3c0f95be143bd2e3eb56c277eb9a99bf93e9cc (diff)
parent29867b5cc18d25191fbbdcc4af4f79cc3a4da43e (diff)
downloadrsyslog-f984a7a098a47b0c44f4702c9f7ca8a31a822ab5.tar.gz
Merge tag 'upstream/7.6.1'
Upstream version 7.6.1
Diffstat (limited to 'doc/omfile.html')
-rw-r--r--doc/omfile.html62
1 files changed, 45 insertions, 17 deletions
diff --git a/doc/omfile.html b/doc/omfile.html
index 0f64f26..655e934 100644
--- a/doc/omfile.html
+++ b/doc/omfile.html
@@ -11,19 +11,37 @@
<p><b>Author: </b>Rainer Gerhards &lt;rgergards@adiscon.com&gt;</p>
<p><b>Description</b>:</p>
<p>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. </p>
-<p>&nbsp;</p>
<p><b>Module Parameters</b>:</p>
<ul>
<li><strong>Template </strong>[templateName]<br>
- sets a new default template for file actions.<br></li>
+ Set the default template to be used if an action is not
+ configured to use a specific template.<br></li>
+
+ <li><strong>DirCreateMode </strong>[default 0700]<br>
+ Sets the default DirCreateMode to be used for an action
+ if no explicit one is specified.</br>
+ <li><strong>FileCreateMode </strong>[default 0644]<br>
+ Sets the default DirCreateMode to be used for an action
+ if no explicit one is specified.</br>
</ul>
<p>&nbsp;</p>
<p><b>Action Parameters</b>:</p>
<ul>
- <li><strong>DynaFileCacheSize </strong>(not mandatory, default will be used)<br>
- Defines a template to be used for the output. <br></li><br>
+ <li><strong>Template </strong>[templateName]<br>
+ Sets the template to be used for this action. If not specified, the
+ default template is applied.<br></li><br>
+
+ <li><strong>DynaFileCacheSize </strong>(not mandatory, default 10)<br>
+ Applies only if dynamic filenames are used.<br>
+ Specifies the number of DynaFiles that will be kept open. The default is
+ 10. Note that this is a per-action value, so if you have multiple
+ dynafile actions, each of them have their individual caches (which means
+ the numbers sum up). Ideally, the cache size exactly matches the
+ need. You can use <a href="impstats.html">impstats</a> to tune this
+ value. Note that a too-low cache size can be a very considerable
+ performance bottleneck.<br></li><br>
<li><strong>ZipLevel </strong>0..9 [default 0]<br>
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.<br></li><br>
@@ -39,7 +57,8 @@
</li><br>
<li><strong>FlushInterval </strong>(not mandatory, default will be used)<br>
- Defines a template to be used for the output. <br></li><br>
+ Defines, in seconds, the interval after which unwritten data is
+ flushed.<br></li><br>
<li><strong>ASyncWriting </strong>on/off [default off]<br>
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 FlushInterval, AsyncWriting must be set to "on". Otherwise, the flush interval will be ignored. Also note that when FlushOnTXEnd is "on" but AsyncWriting 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. <br></li><br>
@@ -53,21 +72,33 @@
<li><strong>DirOwner </strong><br>
Set the file owner for directories newly created. Please note that this setting does not affect the owner of directories already existing. The parameter is a user name, for which the userid is obtained by rsyslogd during startup processing. Interim changes to the user mapping are not detected.<br></li><br>
+ <li><strong>DirOwnerNum </strong> available in 7.5.8+ and 8.1.4+<br>
+ Set the file owner for directories newly created. Please note that this setting does not affect the owner of directories already existing. The parameter is a numerical ID, which is used regardless of whether the user actually exists. This can be useful if the user mapping is not available to rsyslog during startup.<br></li><br>
+
<li><strong>DirGroup </strong><br>
Set the group for directories newly created. Please note that this setting does not affect the group of directories already existing. The parameter is a group name, for which the groupid is obtained by rsyslogd on during startup processing. Interim changes to the user mapping are not detected.<br></li><br>
+ <li><strong>DirGroupNum </strong available in 7.5.8+ and 8.1.4+><br>
+ Set the group for directories newly created. Please note that this setting does not affect the group of directories already existing. The parameter is a numerical ID, which is used regardless of whether the group actually exists. This can be useful if the group mapping is not available to rsyslog during startup.<br></li><br>
+
<li><strong>FileOwner </strong><br>
Set the file owner for files newly created. Please note that this setting does not affect the owner of files already existing. The parameter is a user name, for which the userid is obtained by rsyslogd during startup processing. Interim changes to the user mapping are not detected.<br></li><br>
+ <li><strong>FileOwnerNum </strong> available in 7.5.8+ and 8.1.4+<br>
+ Set the file owner for files newly created. Please note that this setting does not affect the owner of files already existing. The parameter is a numerical ID, which which is used regardless of whether the user actually exists. This can be useful if the user mapping is not available to rsyslog during startup.<br></li><br>
+
<li><strong>FileGroup </strong><br>
Set the group for files newly created. Please note that this setting does not affect the group of files already existing. The parameter is a group name, for which the groupid is obtained by rsyslogd during startup processing. Interim changes to the user mapping are not detected.<br></li><br>
- <li><strong>DirCreateMode </strong>[defaul 0700]<br>
- This is the same as $FileCreateMode, but for directories automatically generated.<br></li><br>
+ <li><strong>FileGroupNum </strong> available in 7.5.8+ and 8.1.4+<br>
+ Set the group for files newly created. Please note that this setting does not affect the group of files already existing. The parameter is a numerical ID, which is used regardless of whether the group actually exists. This can be useful if the group mapping is not available to rsyslog during startup.<br></li><br>
- <li><strong>FileCreateMode </strong>[default 0644]<br>
+ <li><strong>FileCreateMode </strong>[default equelly-named module parameter]<br>
The FileCreateMode directive allows to specify the creation mode with which rsyslogd creates new files. If not specified, the value 0644 is used (which retains backward-compatibility with earlier releases). The value given must always be a 4-digit octal number, with the initial digit being zero. <br>Please note that the actual permission depend on rsyslogd's process umask. If in doubt, use "$umask 0000" right at the beginning of the configuration file to remove any restrictions. <br>FileCreateMode may be specified multiple times. If so, it specifies the creation mode for all selector lines that follow until the next $FileCreateMode directive. Order of lines is vitally important.<br></li><br>
+ <li><strong>DirCreateMode </strong>[default equelly-named module parameter]<br>
+ This is the same as FileCreateMode, but for directories automatically generated.<br></li><br>
+
<li><strong>FailOnCHOwnFailure </strong>on/off [default on]<br>
This option modifies behaviour of file creation. If different owners or groups are specified for new files or directories and rsyslogd fails to set these new owners or groups, it will log an error and NOT write to the file in question if that option is set to "on". If it is set to "off", the error will be ignored and processing continues. Keep in mind, that the files in this case may be (in)accessible by people who should not have permission. The default is "on".<br></li><br>
@@ -75,7 +106,8 @@
create directories on an as-needed basis<br></li><br>
<li><strong>Sync </strong>on/off [default off]<br>
- enables file syncing capability of omfile.<br></li><br>
+ enables file syncing capability of omfile. Note that this causes
+ an enormous performance hit if enabled.<br></li><br>
<li><strong>File </strong><br>
If the file already exists, new data is appended to it. Existing data is not truncated. If the file does not already exist, it is created. Files are kept open as long as rsyslogd is active. This conflicts with external log file rotation. In order to close a file after rotation, send rsyslogd a HUP signal after the file has been rotated away. <br></li><br>
@@ -93,9 +125,6 @@
there only is one provider called
"<a href="cryprov_gcry.html">gcry</a>".<br></li><br>
- <li><strong>Template </strong>[templateName]<br>
- sets a new default template for file actions.<br></li><br>
-
</ul>
<p><b>See Also</b>
<ul>
@@ -124,11 +153,10 @@ unusable.
</ul>
<p><b>Sample:</b></p>
<p>The following command writes all syslog messages into a file.</p>
-<textarea rows="5" cols="60">Module (load="builtin:omfile")
-*.* action(type="omfile"
- DirCreateMode="0700"
- FileCreateMode="0644"
- File="/var/log/messages")
+<textarea rows="5" cols="60">action(type="omfile"
+ DirCreateMode="0700"
+ FileCreateMode="0644"
+ File="/var/log/messages")
</textarea>
<br><br>