~ubuntu-branches/ubuntu/lucid/rsyslog/lucid

« back to all changes in this revision

Viewing changes to doc/rsconf1_actionexeconlyifpreviousissuspended.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2007-10-19 17:21:49 UTC
  • Revision ID: james.westby@ubuntu.com-20071019172149-ie6ej2xve33mxiu7
Tags: upstream-1.19.10
ImportĀ upstreamĀ versionĀ 1.19.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<title>rsyslog.conf file</title>
 
4
</head>
 
5
<body>
 
6
<h2>$ActionExecOnlyIfPreviousIsSuspended</h2>
 
7
<p><b>Type:</b> global configuration directive</p>
 
8
<p><b>Default:</b> off</p>
 
9
<p><b>Description:</b></p>
 
10
<p>This directive allows to specify if actions should always be executed ("off," the default) or only if the previous action is suspended ("on"). This directive works hand-in-hand with the multiple actions per selector feature. It can be used, for example, to create rules that automatically switch destination servers or databases to a (set of) backup(s), if the primary server fails. Note that this feature depends on proper implementation of the suspend feature in the output module. All built-in output modules properly support it (most importantly the database write and the syslog message forwarder).</p>
 
11
<p>This selector processes all messages it receives (*.*).  It tries to forward every message to primary-syslog.example.com (via tcp). If it can not reach that server, it tries secondary-1-syslog.example.com, if that fails too, it tries secondary-2-syslog.example.com. If neither of these servers can be connected, the data is stored in /var/log/localbuffer. Please note that the secondaries and the local log buffer are only used if the one before them does not work. So ideally, /var/log/localbuffer will never receive a message. If one of the servers resumes operation, it automatically takes over processing again.</p>
 
12
<p>We strongly advise not to use repeated line reduction together with ActionExecOnlyIfPreviousIsSuspended. It may lead to "interesting" and undesired results (but you can try it if you like).</p>
 
13
<p><b>Sample:</b></p>
 
14
<p><code><b>*.* @@primary-syslog.example.com
 
15
<br>$ActionExecOnlyIfPreviousIsSuspended on
 
16
<br>&   @@secondary-1-syslog.example.com    # & is used to have more than one action for
 
17
<br>&   @@secondary-2-syslog.example.com    # the same selector - the mult-action feature
 
18
<br>&   /var/log/localbuffer
 
19
<br>$ActionExecOnlyIfPreviousIsSuspended off # to re-set it for the next selector </b></code></p>
 
20
 
 
21
<p>[<a href="rsyslog_conf.html">rsyslog.conf overview</a>] [<a href="manual.html">manual 
 
22
index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p>
 
23
<p><font size="2">This documentation is part of the
 
24
<a href="http://www.rsyslog.com/">rsyslog</a> project.<br>
 
25
Copyright &copy; 2007 by <a href="http://www.gerhards.net/rainer">Rainer Gerhards</a> and
 
26
<a href="http://www.adiscon.com/">Adiscon</a>. Released under the GNU GPL 
 
27
version 2 or higher.</font></p>
 
28
</body>
 
29
</html>
 
 
b'\\ No newline at end of file'