938 Commits

Author SHA1 Message Date
Rainer Gerhards
ba0f23182a new feature: "." action type added to support writing files to relative pathes
(this is primarily meant as a debug aid)
2010-03-17 16:25:24 +01:00
Rainer Gerhards
219336ec5a bugfix: recent patch to fix small memory leak could cause invalid free.
This could only happen during config file parsing.
2010-03-16 17:02:49 +01:00
Rainer Gerhards
a1127abbae bugfix(minor): handling of extremely large strings in dbgprintf() fixed
Previously, it could lead to garbagge output and, in extreme cases, also
to segfaults. Note: this was a problem only when debug output was
actually enabled, so it caused no problem in production use.
2010-03-15 09:29:54 +01:00
Rainer Gerhards
5996414f04 bugfixes and testbench improvement
- improved testbench
- bugfix: potential data loss during file stream shutdown
- bugfix: potential problems during file stream shutdown
  The shutdown/close sequence was not clean, what potentially (but
  unlikely) could lead to some issues. We have not been able to describe
  any fatal cases, but there was some bug potential. Sequence has now
  been straighted out.
2010-03-10 07:36:38 +01:00
Rainer Gerhards
3d80d6ba30 bugfix: potential problem (loop, abort) when file write error occured
When a write error occured in stream.c, variable iWritten had the error
code but this was handled as if it were the actual number of bytes
written. That was used in pointer arithmetic later on, and thus could
lead to all sorts of problems. However, this could only happen if the
error was EINTR or the file in question was a tty. All other cases were
handled properly. Now, iWritten is reset to zero in such cases, resulting
in proper retries.
2010-03-09 18:07:31 +01:00
Rainer Gerhards
9e0426da5f bugfix: $omfileFlushOnTXEnd was turned on when set to off and vice versa 2010-03-09 17:52:01 +01:00
Rainer Gerhards
d97ad63e21 added new property replacer option "date-rfc3164-buggyday"
primarily to ease migration from syslog-ng. See property replacer doc for
details. [backport from 5.5.3 because urgently needed by some]
2010-03-08 17:56:11 +01:00
Rainer Gerhards
0b84d47f7a prepared 4.6.1 2010-03-04 11:42:21 +01:00
Rainer Gerhards
ad8ec0577a cosmetic: ChangeLog update
including proper credits to Mandriva team.
2010-03-04 09:27:36 +01:00
Rainer Gerhards
6cf9bf703d bugfix: potential (but very impropable) segfaults in omfile
- bugfix: potential segfault in omfile when a dynafile open failed
  In that case, a partial cache entry was written, and some internal
  pointers (iCurrElt) not correctly updated. In the next iteration, that
  could lead to a segfault, especially if iCurrElt then points to the
  then-partial record. Not very likely, but could happen in practice.
- bugfix (theoretical): potential segfault in omfile under low memory
  condition. This is only a theoretical bug, because it would only
  happen when strdup() fails to allocate memory - which is highly
  unlikely and will probably lead to all other sorts of errors.
2010-03-02 11:32:43 +01:00
Rainer Gerhards
af6c73439e cosmetic: bugfix in ChangeLog highlighted 2010-03-01 12:51:15 +01:00
Rainer Gerhards
facf8cc3e6 Merge branch 'v3-stable' into v4-stable
Conflicts:
	runtime/ctok.c
2010-03-01 12:47:28 +01:00
Rainer Gerhards
01e6df368c bugfix: comment char ('#') in literal terminated script parsing
...and thus could not be used.
but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119
2010-03-01 12:44:57 +01:00
Rainer Gerhards
f12a1995e4 bugfix: fixed problem that caused compilation on FreeBSD 9.0 to fail.
bugtracker: http://bugzilla.adiscon.com/show_bug.cgi?id=181
Thanks to Christiano for reporting.
2010-02-28 18:33:08 +01:00
Rainer Gerhards
76ded5e98b doc bugfix: ChangeLog heading claimed that 4.6.0 was v4-beta
while the rest of the entry correctly said it was stable.
2010-02-25 10:09:47 +01:00
Rainer Gerhards
8e027749b9 preparing for 4.6.0 release 2010-02-24 10:22:54 +01:00
Rainer Gerhards
af5fb078d4 message parser fixes and testbench enhancements
- improved testbench to contain samples for totally malformed messages
  which miss parts of the message content
- bugfix: some malformed messages could lead to a missing LF inside files
  or some other missing parts of the template content.
- bugfix: if a message ended immediately with a hostname, the hostname
  was mistakenly interpreted as TAG, and localhost be used as hostname
2010-02-22 14:25:56 +01:00
Rainer Gerhards
c577e9c64c bugfix: message without MSG part could case a segfault
[backported from v5 commit 98d1ed504ec001728955a5bcd7916f64cd85f39f]
This actually was a "recent" regression, but I did not realize that it
was introduced by the performance optimization in v4-devel. Shame on
me for having two devel versions at the same time...
2010-02-22 09:31:10 +01:00
Rainer Gerhards
76b3f2cd87 preparing for 4.5.8 2010-02-10 15:26:27 +01:00
Rainer Gerhards
e1584b71f3 several bugfixes for the property replacer
- bugfix: property replacer returned invalid parameters under some (unusual)
  conditions. In extreme cases, this could lead to garbled logs and/or
  a system failure.
- bugfix: invalid length returned (often) when using regular expressions
  inside the property replacer
- bugfix: submatch regex in property replacer did not honor "return 0 on
  no match" config case
2010-02-08 16:53:30 +01:00
Rainer Gerhards
c34e7d2114 integrated new PostgreSQL doc
converted to html, linked, etc...
2010-02-08 14:30:08 +01:00
Rainer Gerhards
85a0ed1cce bugfix: imuxsock incorrectly stated inputname "imudp"
Thanks to Ryan Lynch for reporting this.
2010-02-06 12:03:24 +01:00
Rainer Gerhards
ef193bf0ae Merge branch 'v4-stable' into v4-beta 2010-02-04 16:43:21 +01:00
varmojfekoj
8c3ab2e26f bugfix: several smaller bugs resolved after flexelint review
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-02-04 16:02:57 +01:00
Cristiano
66d129c9ca (slightly) enhanced support for FreeBSD by setting _PATH_MODDIR to the correct value on FreeBSD.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-02-03 15:42:14 +01:00
Rainer Gerhards
939852b1cd Merge branch 'v4-stable' into v4-beta
Conflicts:
	runtime/queue.c
2010-01-26 12:02:07 +01:00
varmojfekoj
7d098f14cb bugfix: potential segfault on queue shutdown
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-01-26 11:54:33 +01:00
Rainer Gerhards
2c86548063 Merge branch 'queuepatch' into v4-betanew
Conflicts:
	runtime/queue.c
2010-01-26 11:33:32 +01:00
Rainer Gerhards
bd03b86c63 bugfix: -d did not enable display of debug messages
regression from introduction of "debug on demand" mode
Thanks to Michael Biebl for reporting this bug
2010-01-19 15:49:26 +01:00
Rainer Gerhards
9cfa072caa bugfix: blanks inside file names did not terminate file name parsing.
This could reslult in the whole rest of a line (including comments)
to be treated as file name in "write to file" actions.
Thanks to Jack for reporting this issue.
2010-01-19 15:15:22 +01:00
Rainer Gerhards
5b4e06fc28 bugfix: rsyslog hangs when writing to a named pipe which nobody was reading.
Thanks to Michael Biebl for reporting this bug.
2010-01-15 17:01:10 +01:00
Naoya Nakazawa
009738a0ac fixed a memory leak when sending messages in zip-compressed format
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-01-11 12:34:46 +01:00
Rainer Gerhards
a65f638523 Merge branch 'v4-stable' into v4-beta 2009-12-04 13:14:14 +01:00
Rainer Gerhards
44ee165390 Merge branch 'v3-stable' into v4-stable 2009-12-04 13:13:12 +01:00
Rainer Gerhards
8021912232 bugfix: potential segfault when -p command line option was used
thanks to varmojfekoj for pointing me at this bug
2009-12-04 13:11:50 +01:00
Rainer Gerhards
09a10603ff bugfix: hostname accidently set to IP address for some message sources
for example imudp. Thanks to Anton for reporting this bug.
2009-11-30 12:43:03 +01:00
Rainer Gerhards
4cc7a7c16c Merge branch 'v4-stable' into v4-beta 2009-11-30 11:51:32 +01:00
Rainer Gerhards
cf1275d846 Merge branch 'v3-stable' into v4-stable 2009-11-30 11:51:20 +01:00
Rainer Gerhards
7b40604e9a bugfix: $CreateDirs variable not properly initialized
default thus was random (but most often "on")
2009-11-30 11:50:57 +01:00
Jonathan Bond-Caron
3056c15ef4 bugfix (kind of): check if TCP connection is still alive if using TLS
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-11-25 16:35:54 +01:00
Rainer Gerhards
903811a856 preparing for 4.5.7 2009-11-18 10:55:17 +01:00
Rainer Gerhards
8aec830cf5 Merge branch 'v4-stable' into v4-beta 2009-11-12 14:46:58 +01:00
Rainer Gerhards
96790ad403 cosmetic: mention imported v3-bugfix in ChangeLog 2009-11-12 14:27:54 +01:00
Rainer Gerhards
bedc903ae0 Merge branch 'v3-stable' into v4-stable 2009-11-12 14:10:00 +01:00
Rainer Gerhards
e4542eb926 bugfix: segfault on startup when -q or -Q option was given
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=157
Thanks to Jonas Nogueira for reporting this bug.
2009-11-12 14:07:12 +01:00
Rainer Gerhards
0fd8143d87 Merge branch 'v4-stable' into v4-beta
Conflicts:
	tests/Makefile.am
2009-11-12 13:21:46 +01:00
Rainer Gerhards
0a5b731f2f bugfix: $ActionExecOnlyOnceEveryInterval did not work.
This was a regression from the time() optimizations done in v4.
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=143
Thanks to Klaus Tachtler for reporting this bug.
2009-11-12 13:14:39 +01:00
Rainer Gerhards
2b5e15d549 added a so-called "On Demand Debug" mode
in which debug output can be generated only after the process has started,
but not right from the beginning. This is assumed to be useful for
hard-to-find bugs.  Also improved the doc on the debug system.
2009-11-10 12:50:48 +01:00
Rainer Gerhards
224c3aef8b bumped version number 2009-11-05 15:27:16 +01:00
Rainer Gerhards
dfbdb0d98d preparing for 4.5.6 2009-11-05 15:25:31 +01:00