genienero.blogg.se

Copy log messages to another file
Copy log messages to another file





copy log messages to another file
  1. #COPY LOG MESSAGES TO ANOTHER FILE DRIVER#
  2. #COPY LOG MESSAGES TO ANOTHER FILE MANUAL#

When creating a new dir() option for a disk buffer, or modifying an existing one, make sure you delete the persist file. Hazard of data loss! If you change the value of reliable() option when there are messages in the disk-buffer, the messages stored in the disk-buffer will be lost.ĭescription: Defines the folder where the disk-buffer files are stored. This provides a faster, but less reliable disk-buffer option. If set to no, the normal disk-buffer will be used. It is created and initialized at startup and gradually grows as new messages arrive. This solution provides a slower, but reliable disk-buffer option. It has the following options: reliable()ĭescription: If set to yes, syslog-ng OSE cannot lose logs in case of reload/restart, unreachable destination or syslog-ng OSE crash. disk-buffer()ĭescription: This option enables putting outgoing messages into the disk buffer of the destination to avoid message loss in case of a system failure on the destination side. Note that when creating a new directory without specifying attributes for dir-perm(), the default permission of the directories is masked with the umask of the parent process (typically 0022). To preserve the original properties of an existing directory, use the option without specifying an attribute: dir-perm(). For octal numbers prefix the number with 0, for example use 0755 for rwxr-xr-x. Log directories are only created if a file after macro expansion refers to a non-existing directory, and directory creation is enabled (see also the create-dirs() option). dir-perm() Type:ĭescription: The permission mask of directories created by syslog-ng. Starting with version 3.16, the default value of this option is -1, so syslog-ng OSE does not change the ownership, unless explicitly configured to do so. To preserve the original properties of an existing directory, use the option without specifying an attribute: dir-owner().

copy log messages to another file

dir-owner() Type:ĭescription: The owner of the directories created by syslog-ng. To preserve the original properties of an existing directory, use the option without specifying an attribute: dir-group(). dir-group() Type:ĭescription: The group of the directories created by syslog-ng. For setting the ulimit parameter of the host, see the documentation of your operating system.ĭescription: Enable creating non-existing directories.

copy log messages to another file

#COPY LOG MESSAGES TO ANOTHER FILE MANUAL#

For setting the -fd-limit command-line parameter of syslog-ng see the The syslog-ng manual page manual page. To overcome this problem, adjust the -fd-limit command-line parameter of syslog-ng or the global ulimit parameter of your host.

#COPY LOG MESSAGES TO ANOTHER FILE DRIVER#

Example: Using the file() driver with macros in the file name and a template for the message destination d_file macro in the filename while receiving messages from a large number of hosts.







Copy log messages to another file