2824 Commits

Author SHA1 Message Date
Rainer Gerhards
bfc3eaf23c bugfix: potential segfault in output file writer (omfile)
In async write mode, we use modular arithmetic to index the output
buffer array. However, the counter variables accidently were signed,
thus resulting in negative indizes after integer overflow. That in turn
could lead to segfaults, but was depending on the memory layout of
the instance in question (which in turn depended on a number of
variables, like compile settings but also configuration). The counters
are now unsigned (as they always should have been) and so the dangling
mis-indexing does no longer happen. This bug potentially affected all
installations, even if only some may actually have seen a segfault.
2009-08-18 18:48:18 +02:00
Rainer Gerhards
56b781e5bb added $InputTCPMaxListeners directive
permits to specify how many TCP servers shall be possible (default is 20).
2009-08-17 17:18:19 +02:00
Rainer Gerhards
9cab1036d2 bugfix: if tcp listen port could not be created, no error message was emitted 2009-08-17 16:23:37 +02:00
Rainer Gerhards
aa10f7a164 legacy syslog parser changed so that it now accepts date stamps in wrong case.
Some devices seem to create them and I do not see any harm in supporting that.
2009-08-17 14:44:42 +02:00
Rainer Gerhards
51aa94ea2c fixed left-over from merge failure
thanks to Michael Biebl for pointing the problem out
2009-07-30 15:25:49 +02:00
Rainer Gerhards
1d0806b9e3 calls to prctl() need to be based on configure results (cross-platform issue)
This is for another prctl() call, not present in the beta version (looks like it
would make sense to stick these into a utility function)
2009-07-16 13:51:52 +02:00
Rainer Gerhards
214e5ec7c0 Merge branch 'v4-beta' into v4-devel 2009-07-16 12:56:01 +02:00
Rainer Gerhards
191c51187e calls to prctl() need to be based on configure results (cross-platform issue) 2009-07-16 12:55:22 +02:00
Rainer Gerhards
8f06095880 documenting imported bugfix
v4-beta was so far unreleased, so it was a bug only here
2009-07-15 14:08:04 +02:00
Rainer Gerhards
b103d86392 Merge branch 'v4-beta' into v4-devel 2009-07-15 14:06:09 +02:00
Rainer Gerhards
cc8ef1a154 bugfix: memory leak with some input modules 2009-07-15 14:05:39 +02:00
Rainer Gerhards
07b076ddcf final touches for 4.5.1 v4.5.1 2009-07-15 11:33:49 +02:00
Rainer Gerhards
ff6f2b1cc0 Merge branch 'v4-beta' into v4-devel 2009-07-15 11:17:14 +02:00
Rainer Gerhards
a8b583669a CONFIG CHANGE: $HUPisRestart default is now "off".
We are doing this to support removal of restart-type HUP in v5.
Elaborate doc added to explain reasoning and actions to be taken.
2009-07-15 11:12:28 +02:00
Rainer Gerhards
17b5f2264f removed outdated html version of man page
html doc is better
2009-07-15 10:21:20 +02:00
Rainer Gerhards
e983d1a422 Merge branch 'v3-stable' into v4-beta 2009-07-15 10:20:24 +02:00
Rainer Gerhards
b6340c7714 removed mentioning HUP as a way of restarting from the doc set
... part of the deprecation effort for v5
2009-07-15 10:19:23 +02:00
Rainer Gerhards
095a20360a added ability for the TCP output action to "rebind" its send socket
...after sending n messages (actually, it re-opens the connection, the
name is used because this is a concept very similiar to
$ActionUDPRebindInterval). New config directive $ActionSendTCPRebindInterval
added for the purpose. By default, rebinding is disabled. This is considered#
useful for load balancers.
2009-07-14 19:53:04 +02:00
Rainer Gerhards
935a9eef57 added tcp output rebinding option.
added tcp output rebinding option.

needs some more testing and doc
2009-07-14 19:45:26 +02:00
Rainer Gerhards
9e81945a64 Merge branch 'v4-beta' into v4-devel 2009-07-14 15:28:58 +02:00
Rainer Gerhards
7eadb67d19 bugfix: fromhost-ip was sometimes truncated 2009-07-14 15:27:00 +02:00
Rainer Gerhards
fec2041e03 Merge branch 'v3-stable' into v4-stable
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
2009-07-13 15:55:46 +02:00
Rainer Gerhards
ddd427cf5c Merge branch 'v4-beta' into v4-devel 2009-07-13 15:52:59 +02:00
Rainer Gerhards
47ca77faca Merge branch 'v3-stable' into v4-beta
Conflicts:
	ChangeLog
2009-07-13 15:52:45 +02:00
Rainer Gerhards
ef9722ec87 fix compile error in zip sender patch
... at least I was smart enough to remind me that I did not do
one test ;) That reminder was the compiler error. Now removed and
test done ;) [simple things tend to work, lol]
2009-07-13 15:44:09 +02:00
Rainer Gerhards
e27b56f0b7 better configure error message if mysql-devel is missing 2009-07-13 14:56:29 +02:00
Rainer Gerhards
89e18de662 bugfix: sending syslog messages with zip compression did not work 2009-07-13 14:24:16 +02:00
Rainer Gerhards
7eb5a5c5bd Merge branch 'v4-beta' into v4-devel 2009-07-10 13:57:34 +02:00
Rainer Gerhards
6fff4ae332 bugfix: potential segfault when zip-compressed syslog records were received (double free) 2009-07-10 13:56:46 +02:00
Rainer Gerhards
6fde78cb74 small performance improvement and cleanup
optimized substring processing, should bring a small enhancement when
forwarding with the default forwarding templates. Also did some uchar
cleanup in msg.c (thus so many changes, in reality they are few...).
2009-07-09 17:19:21 +02:00
Rainer Gerhards
ab40107149 Merge branch 'v4-beta' into v4-devel
Conflicts:
	tests/nettester.c
2009-07-09 16:35:13 +02:00
Rainer Gerhards
9de685929e bugfix: message could be truncated after TAG, often when forwarding
This was a result of an internal processing error if maximum field
sizes had been specified in the property replacer.
Also did some testbench improvements, including omstdout.
2009-07-09 16:32:14 +02:00
Rainer Gerhards
92020c6ea1 bugfix: omfwd segfault when debugging is turned on 2009-07-09 12:34:48 +02:00
Rainer Gerhards
5221a1e42e added capability to write incomplete buffers after an inactivity timeout
for the stream class and thus finally activating omfile's timeout
capability in a useful way without polling and too-high performance
overhead.
2009-07-07 18:33:00 +02:00
Rainer Gerhards
26227091fa fixed a bug introduced today that lead to an abort in queue disk mode 2009-07-07 17:18:51 +02:00
Rainer Gerhards
c444f96449 Merge branch 'v4-beta' into v4-devel 2009-07-07 13:13:52 +02:00
Rainer Gerhards
9e9322585d bugfix: property msg was lost when working with disk queues 2009-07-07 13:12:15 +02:00
Rainer Gerhards
27deea809d bugfix: properties inputname, fromhost, fromhost-ip were lost
... when working with disk queues.
2009-07-07 12:26:23 +02:00
Rainer Gerhards
f53aa966e1 solved a race condition 2009-07-07 12:09:41 +02:00
Rainer Gerhards
53aa68fc7d clean solution for "writing" arbrietary-size user buffers to a stream 2009-07-07 09:16:14 +02:00
Rainer Gerhards
4e9deb5b88 stream now uses a singular buffer strucuture for writing 2009-07-07 08:33:22 +02:00
Rainer Gerhards
f27b5cc253 moved locking primitives 2009-07-07 08:08:22 +02:00
Rainer Gerhards
53b055b6aa moved zip part to writer thread
... this is necessary in preparation for the final solution (we need
to have a "unified" writer). If it causes worse performance to have the
zip writher togehter with the synchronous write, we may do an async write...
2009-07-06 19:44:53 +02:00
Rainer Gerhards
8e76a0521b some minor cleanup 2009-07-06 19:28:22 +02:00
Rainer Gerhards
2471dc2f1f Merge branch 'v4-beta' into v4-devel 2009-07-06 18:55:30 +02:00
Rainer Gerhards
01cdda8a65 performance enhancement: much faster, up to twice as fast
(depending on configuration). This was a small change, but with big
results. There is more potential to explore, but the effects were so
dramatic that I think it makes sense to include this fix.
2009-07-06 18:52:27 +02:00
Rainer Gerhards
e3040285db first shot at asynchronous stream writer with timeout capability
... seems to work on quick testing, but needs a far more testing
and improvement. Good milestone commit.
2009-07-06 16:38:09 +02:00
Rainer Gerhards
7fdeac0bdc bugfix: abort condition when RecvFrom was not set and message reduction was on
Happend e.g. with imuxsock.
2009-07-06 13:30:45 +02:00
Rainer Gerhards
da933a7e10 added $klogConsoleLogLevel directive
...which permits to set a new console log level while rsyslog is active
2009-07-03 11:57:21 +02:00
Rainer Gerhards
f03b26b550 bugfix: missing initialization during timestamp creation
This could lead to timestamps written in the wrong format, but not to
an abort.
v4.5.0
2009-07-03 10:33:35 +02:00