2405 Commits

Author SHA1 Message Date
Rainer Gerhards
935018ed62 adapted test framework to new script engine 2009-03-19 13:58:39 +01:00
Rainer Gerhards
508a9e0cef omfile suspend handling for non-dynafiles, also bugfixes
primarily bugs introduced by recent changes. We now also handle
static file names correctly, that was not the case before. We
now correctly reset the descriptor in the dynafile cache if
somthing goes wrong.

Keep in mind that reliablity of output is depending on the
reliability of the file system driver (the cifs driver returns OK,
but still loses data if it is disconnected for too-long).
2009-03-19 12:01:43 +01:00
Rainer Gerhards
27a639ed88 omfile bugfixing
- fixed a bug that caused action retries not to work correctly
  situation was only cleared by a restart
- bugfix: closed dynafile was potentially never written until another
  dynafile name was generated - potential loss of messages
2009-03-18 17:55:15 +01:00
Rainer Gerhards
7268b9bc5b undid typo 2009-03-17 18:27:33 +01:00
Rainer Gerhards
3762d2b7bc fixed some message-loss situations when file write failures happened 2009-03-17 18:26:15 +01:00
Rainer Gerhards
51e690f720 fixed some portability issues
first noticed on FreeBSD
Also, some cosmetic improvements.
2009-03-16 18:54:42 +01:00
Rainer Gerhards
208f4e107c added output module template
so far, this is mostly some documentation, but I hope that during
the process of creating output modules out of it we will get good
questions and thus can extend the template. In any case, it should
be better than what we had so far...
2009-03-16 17:26:45 +01:00
Rainer Gerhards
446a982c2b some more information on rainerscript imlementation
(taken from old rscript branch, which is now obsolete)
2009-03-16 16:05:15 +01:00
varmojfekoj
16b960939e fixed bugs in RainerScript
- when converting a number and a string to a common type, both were
  actually converted to the other variable's type.
- the value of rsCStrConvertToNumber() was miscalculated.

Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-03-16 15:40:03 +01:00
Rainer Gerhards
e23e2e391c added link to online tutorial on the web 2009-03-16 10:20:41 +01:00
Rainer Gerhards
f664f3b28e Merge branch 'master' into rscript-func 2009-03-13 12:55:13 +01:00
Rainer Gerhards
2bb202f665 bugfix: removed (newly introduced) memory leaks 2009-03-13 12:52:53 +01:00
Rainer Gerhards
cdc8cf8d55 better readability for compiled VMPrg output 2009-03-12 05:40:03 +01:00
Rainer Gerhards
89b0868553 added link to (new) online video tutorials to manual set 2009-03-11 20:40:35 +01:00
Rainer Gerhards
f289422585 changed one more status setting
user feedback indicates it now looks like it is working ;)
still some more work needed for a "good" solution
2009-03-11 19:54:30 +01:00
Rainer Gerhards
a03d90abe1 try to make file writer restartable (experimental, untested) 2009-03-11 15:26:51 +01:00
Rainer Gerhards
4df8bb4e6b Merge branch 'beta'
Conflicts:
	doc/omrelp.html
2009-03-11 15:16:57 +01:00
Rainer Gerhards
ae7a01e137 Merge branch 'v3-stable' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
2009-03-11 15:15:34 +01:00
Rainer Gerhards
dd19c937c1 updated project status, version 2009-03-11 15:12:33 +01:00
Rainer Gerhards
837b2b8d26 preparing for 4.1.5 release v4.1.5 2009-03-11 15:06:18 +01:00
Rainer Gerhards
59192611db bugfix: parser did not correctly parse fields in UDP-received messages 2009-03-10 22:36:40 +01:00
Rainer Gerhards
e8499c6d33 initial implementation of RainerScript functions & strlen()
- implemented function support in RainerScript. That means the engine
  parses and compile functions, as well as executes a few build-in
  ones. Dynamic loading and registration of functions is not yet
  supported - but we now have a good foundation to do that later on.
  NOTE: nested function calls are not yet supported due to a design
  issue with the function call VM instruction set design.
- implemented the strlen() RainerScript function
2009-03-10 17:37:13 +01:00
Rainer Gerhards
7f43af08fe doc enhance: enhance ommysql documentation
provide standard template for MySQL module and instructions
on how to modify schema
2009-03-06 15:12:29 +01:00
Rainer Gerhards
f67cf99ee5 fixed a platform issue the prevented building on solaris 2009-03-06 14:27:15 +01:00
Rainer Gerhards
2e388db9ac integrated various patches for solaris
Unfortunatley, I do not have the full list of contributors
available. The patch set was compiled by Ben Taylor, and I made
some further changes to adopt it to the news rsyslog branch. Others
provided much of the base work, but I can not find the names of the
original authors. If you happen to be one of them, please let me
know so that I can give proper credits.
2009-03-05 11:10:43 +01:00
Rainer Gerhards
c38776af21 doc typo fix
thanks to Trent W. Buck for alerting me.
2009-03-05 10:37:25 +01:00
Rainer Gerhards
42db7de596 fixed newly introduced memory leak
(bug created 30 minutes ago or so)
2009-03-04 18:46:06 +01:00
Rainer Gerhards
bbcbd87ebd some optimization on regex code
also some commented-out leftover removed
2009-03-04 18:34:36 +01:00
Rainer Gerhards
5005bce387 added ERE support in filter conditions
new comparison operation "ereregex"
2009-03-04 18:22:48 +01:00
varmojfekoj
5d4fd0e2ef fixed a potential segfault problem in gssapi code
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-03-02 15:24:36 +01:00
Rainer Gerhards
924ceb305d Merge branch 'beta'
Conflicts:
	ChangeLog
	Makefile.am
	configure.ac
	doc/manual.html
2009-02-24 14:52:49 +01:00
Rainer Gerhards
b36d9c9294 updated changelog to reflect patch applied 2009-02-24 14:43:15 +01:00
Michael Biebl
21dddac141 Call PKG_PROG_PKG_CONFIG m4 macro unconditionally.
As all the calls to PKG_CHECK_MODULES are conditional, it can happen
that PKG_PROG_PKG_CONFIG is not called (i.e. if you not use
--enable-relp). So we enforce a check for pkg-config by adding it to the
global checks.
2009-02-24 14:42:07 +01:00
Rainer Gerhards
24a36fd142 decreased GNUtls version requirement
rsyslog also works with some 1.x.x versions, but I have not details any longer.
I developed with a v1 version for a while. To be on the save side, I request
2.0.0 (Michael Biebl was even more conservative with 2.4.2 - which he had
at hand - and so I am changing this now).
2009-02-24 14:38:53 +01:00
Michael Biebl
80c4b7a560 doc fix: don't use absolute paths for $ModLoad 2009-02-24 14:30:39 +01:00
Rainer Gerhards
c9486ba5ea reflected build system changes in change log 2009-02-24 13:56:48 +01:00
Michael Biebl
1b912a970c Improve mysql configure check (for unusual paths)
Remove AC_CHECK_HEADERS([mysql/mysql.h],...) as this was causing pain
for users where the mysql headers are not installed in the system include
directory. It was superfluous anyways, as we check for mysql_config and
set the include path to the correct directory.
Update ommysql.c to use #include <mysql.h>, as mysql_config will set the
include path to /path/to/include/mysql/ so <mysql/mysql.h> would not
work.
Remove errmsg.h include as it is not used.
2009-02-24 13:09:45 +01:00
Michael Biebl
1ca5268698 Separate macro file for atomic operations
To unclutter configure.ac and to make it easier re-usable, move the check
for atomic operations into a separate m4 macro file and call the macro
RS_ATOMIC_OPERATIONS (RS for RSyslog)
2009-02-24 13:09:45 +01:00
Michael Biebl
6685cd0c48 Split the m4 macros into a separate directory 2009-02-24 13:09:45 +01:00
Michael Biebl
e4620ab3a4 Use pkg-config for GnuTLS configure check
Use PKG_CHECK_MODULES instead of libgnutls-config to get the compilation
flags (vastly simpler). Set minimum version to 2.4.2, as that is the
oldest version I could test with.
2009-02-24 13:09:44 +01:00
Michael Biebl
0f03e5996a Call PKG_PROG_PKG_CONFIG m4 macro unconditionally.
As all the calls to PKG_CHECK_MODULES are conditional, it can happen
that PKG_PROG_PKG_CONFIG is not called (i.e. if you not use
--enable-relp). So we enforce a check for pkg-config by adding it to the
global checks.
2009-02-24 13:09:44 +01:00
Michael Biebl
1448e2486e make all cflags and libs variables uppercase
pkg-config uses uppercase for its _CFLAGS and _LIBS variable names.
So we follow suit and convert all _cflags and _libs variables to
uppercase for more consistency.
2009-02-24 13:09:44 +01:00
Rainer Gerhards
3c760a3dbc changed TLS link on manual homepage to native TLS doc
... pointed previously to stunnel-alternative, which now that
we support native TLS is now no longer recommended.

Thanks to Michael Biebl for bringing this to my attention.
2009-02-10 15:31:47 +01:00
Rainer Gerhards
96e9bff86d preparing for 3.20.4 v3.20.4 2009-02-09 16:46:39 +01:00
Rainer Gerhards
f5ad2359c9 doc bugfix: dist tarball missed 2 files, had one extra file that no longer belongs into it.
Thanks to Michael Biebl for pointing this out.
2009-02-09 15:43:55 +01:00
Michael Biebl
d742b251a6 bugfix: invalid ./configure settings for RFC3195
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-02-06 13:59:43 +01:00
Rainer Gerhards
91fd3bafda docfix: copy&paste error 2009-02-03 09:45:20 +01:00
Rainer Gerhards
46d7840b25 Merge branch 'lastmessage'
Conflicts:
	ChangeLog
2009-02-02 15:30:14 +01:00
Rainer Gerhards
6ce4a9d605 added new config directive $RepeatedMsgContainsOriginalMsg
so that the "last message repeated n times" messages, if generated, may
have an alternate format that contains the message that is being repeated.
Note that this is on an action-by-action basis.
2009-02-02 15:28:24 +01:00
Rainer Gerhards
f826c284d2 updated project status after 3.21.10 release 2009-02-02 14:45:03 +01:00