diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-16 16:05:15 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-16 16:05:15 +0100 |
commit | 446a982c2b8f77eb0e349e5bd8240ece6a0772bd (patch) | |
tree | 9baf2e595390d463d3235ec158efdf133e0c8063 | |
parent | f664f3b28ef1925e8555cb32cab400c7d5a55723 (diff) | |
download | rsyslog-446a982c2b8f77eb0e349e5bd8240ece6a0772bd.tar.gz rsyslog-446a982c2b8f77eb0e349e5bd8240ece6a0772bd.tar.xz rsyslog-446a982c2b8f77eb0e349e5bd8240ece6a0772bd.zip |
some more information on rainerscript imlementation
(taken from old rscript branch, which is now obsolete)
-rw-r--r-- | doc/rscript_abnf.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/rscript_abnf.html b/doc/rscript_abnf.html index 278fb59c..d60edb5c 100644 --- a/doc/rscript_abnf.html +++ b/doc/rscript_abnf.html @@ -30,6 +30,8 @@ table... values('&$facility&','&$severity&...?]<br> endact table... values('&$facility&','&$severity&...?]<br> )<br><br>... or ...</p><p>define action writeMySQL(<br> type='ommysql.so', queue.mode='disk', queue.highwatermark = 300,<br> action.dbname='events', action.dbuser='uid',<br> [?action.template='templatename'?] or [?action.sql='insert into table... values('&$facility&','&$severity&...?]<br> )</p><p>if $message contains "error" then action writeMySQL(action.dbname='differentDB')</p><p></p><p>[<a href="rsyslog_conf.html">rsyslog.conf overview</a>] +<h2>Implementation</h2> +RainerScript will be implemented via a hand-crafted LL(1) parser. I was tempted to use yacc, but it turned out the resulting code was not thread-safe and as such did not fit within the context of rsyslog. Also, limited error handling is not a real problem for us: if there is a problem in parsing the configuration file, we stop processing. Guessing what was meant and trying to recover would IMHO not be good choices for something like a syslogd. [<a href="manual.html">manual index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p> <p><font size="2">This documentation is part of the <a href="http://www.rsyslog.com/">rsyslog</a> |