From 8fdd3b45c0c2b2a5751efd79e2be4cc0241af53e Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
C-like comments (/* some c
Below is the formal definition of expression format (in ABNF, RFC 2234):
-
; The stuff immediately below here is a quick shot at how the config+
; file ABNF *at whole* may look like. That is not really related to
; expressions, but for the time being I put it here. It will later be
; moved to a more appropriate place. -- rgerhards, 2008-02-22
?line? := cfsysline / cfli
cfsysline:= BOL "$" *char EOL ; how to handle the first line? (no EOL in front!)
BOL := ; Begin of Line - implicitely set on file beginning and after each EOL
EOL := 0x0a ;LF
if_stmt := "if" expr "then"
old_filter:= BOL facility "." severity
facility := "*" / "auth" / "authpriv" / "cron" / "daemon" / "kern" / "lpr" /
"mail" / "mark" / "news" / "security" / "syslog" / "user" / "uucp" /
"local0" .. "local7" / "mark"
; The keyword security should not be used anymore
; mark is just internal
severity :=
; and now the actual expression
expr := e_and *("or" e_and)
e_and := e_cmp *("and" e_cmp)
e_cmp := val 0*1(cmp_op val)
val := term *(("+" / "-") term)
term := factor *(("*" / "/" / "%") factor)
factor := ["not"] ["-"] terminal
terminal := var / constant / function / ( "(" expr ")" )
function := name "(" *("," expr) ")"
var := "$" varname
varname := msgvar / sysvar
msgvar := name
sysvar := "$" name
name := alpha *(alnum)
constant := string / number
string := simpstr / tplstr ; tplstr will be implemented in next phase
simpstr := "'" *char "'" ; use your imagination for char ;)
tplstr := '"' template '"' ; not initially implemented
number := ["-"] 1*digit ; 0nn = octal, 0xnn = hex, nn = decimal
cmp_op := "==" / "!=" / "<>" / "<" / ">" / "<=" / ">=" / "contains" / "startswith"
digit := %x30-39
alpha := "a" ... "z" # all letters
alnum :* alpha / digit / "_"
; The stuff immediately below here is a quick shot at how the config
; file ABNF *at whole* may look like. That is not really related to
; expressions, but for the time being I put it here. It will later be
; moved to a more appropriate place. -- rgerhards, 2008-02-22
?line? := cfsysline / cfli
cfsysline:= BOL "$" *char EOL ; how to handle the first line? (no EOL in front!)
BOL := ; Begin of Line - implicitely set on file beginning and after each EOL
EOL := 0x0a ;LF
if_stmt := "if" expr "then"
old_filter:= BOL facility "." severity ; no whitespace allowed between BOL and facility!
facility := "*" / "auth" / "authpriv" / "cron" / "daemon" / "kern" / "lpr" /
"mail" / "mark" / "news" / "security" / "syslog" / "user" / "uucp" /
"local0" .. "local7" / "mark"
; The keyword security should not be used anymore
; mark is just internal
severity := TBD ; not really relevant in this context
; and now the actual expression
expr := e_and *("or" e_and)
e_and := e_cmp *("and" e_cmp)
e_cmp := val 0*1(cmp_op val)
val := term *(("+" / "-") term)
term := factor *(("*" / "/" / "%") factor)
factor := ["not"] ["-"] terminal
terminal := var / constant / function / ( "(" expr ")" )
function := name "(" *("," expr) ")"
var := "$" varname
varname := msgvar / sysvar
msgvar := name
sysvar := "$" name
name := alpha *(alnum)
constant := string / number
string := simpstr / tplstr ; tplstr will be implemented in next phase
simpstr := "'" *char "'" ; use your imagination for char ;)
tplstr := '"' template '"' ; not initially implemented
number := ["-"] 1*digit ; 0nn = octal, 0xnn = hex, nn = decimal
cmp_op := "==" / "!=" / "<>" / "<" / ">" / "<=" / ">=" / "contains" / "startswith"
digit := %x30-39
alpha := "a" ... "z" # all letters
alnum :* alpha / digit / "_"
[rsyslog.conf overview] [manual index] [rsyslog site]
This documentation is part of the
diff --git a/doc/imgssapi.html b/doc/imgssapi.html
new file mode 100644
index 00000000..8e6b7d87
--- /dev/null
+++ b/doc/imgssapi.html
@@ -0,0 +1,57 @@
+
+
+ Module Name: imtcp Author: varmojfekoj
+<email address here? which?> Description: Provides the ability to receive syslog messages from the
+network protected via Kerberos 5 encryption and authentication. This
+module also contains the functionality found in imtcp,
+which can not be used if imgssapi is used. Configuration Directives: Sample: This sets up a TCP server on port 514 and a GSSAPI protected
+syslog server at port 1514: [rsyslog.conf overview]
+[manual index] [rsyslog site] This documentation is part of the
+rsyslog
+project. Module Name: imtcp Author: Rainer Gerhards
+<rgerhards@adiscon.com> Description: Provides the ability to receive syslog messages via TCP.
+Encryption can be provided by using stunnel
+(an alternative is the use
+the imgssapi
+modul). In the future, multiple receivers may be configured by
+specifying
+$InputTCPServerRun multiple times. This is not currently supported.
+ Configuration Directives: Sample: This sets up a TCP server on port 514: [rsyslog.conf overview]
+[manual index] [rsyslog site] This documentation is part of the
+rsyslog
+project.GSSAPI Syslog Input Module
+
+
+Caveats/Known Bugs:
+
+Starts a GSSAPI server on selected port - note that this runs
+independently from the TCP server.
+The service name to use for the GSS server.
+Starts a TCP server on selected port
+Sets the maximum number of sessions supported
+
+
+
+Copyright © 2008 by Rainer
+Gerhards and
+Adiscon.
+Released under the GNU GPL version 3 or higher.TCP Syslog Input Module
+
+
+Caveats/Known Bugs:
+
+Starts a TCP server on selected port
+Sets the maximum number of sessions supported
+
+
+
+Copyright © 2008 by Rainer
+Gerhards and
+Adiscon.
+Released under the GNU GPL version 3 or higher.
Rsyslogd uses a slightly different syntax for its
configuration file than the original BSD sources. Originally all
messages of a specific priority and above were forwarded to the log
-file. The modifiers "='', "!'' and "-'' were added to make rsyslogd
+file. The modifiers "='', "!'' and "!-'' were added to make rsyslogd
more flexible and to use it in a more intuitive manner.
The original BSD syslogd doesn't understand spaces as separators
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index dc005af8..c3f5e138 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -1287,7 +1287,7 @@ CODEmodInit_QueryRegCFSLineHdlr
#if defined(USE_GSSAPI)
CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputgssserverrun", 0, eCmdHdlrGetWord,
addGSSListener, NULL, STD_LOADABLE_MODULE_ID));
- CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputgsslistenservicename", 0, eCmdHdlrGetWord,
+ CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputgssserverservicename", 0, eCmdHdlrGetWord,
NULL, &gss_listen_service_name, STD_LOADABLE_MODULE_ID));
#endif
CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler,
--
cgit