2744 Commits

Author SHA1 Message Date
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
Rainer Gerhards
b37a1eb0f8 omfile itself no longer needs zlib 2009-07-02 17:06:00 +02:00
Rainer Gerhards
f0467569d2 Merge branch 'beta' 2009-07-02 15:42:39 +02:00
Rainer Gerhards
c53e6554b3 Merge branch 'v3-stable' into beta
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
2009-07-02 15:42:23 +02:00
Rainer Gerhards
538543f6d0 preparing for 3.22.1 v3.22.1 2009-07-02 15:40:47 +02:00
Rainer Gerhards
7f0c059118 updating version info to 4.5.0 2009-07-02 15:32:09 +02:00
Rainer Gerhards
1dee200143 completed ruleset documentation 2009-07-02 15:29:37 +02:00
Rainer Gerhards
51882ce4de first shot at multi-ruleset doc 2009-07-01 18:57:58 +02:00
Rainer Gerhards
7bfa03bdc0 now put the new property-based methods to good use
... hopefully reducing the number of allocs/frees as well as overall
memory usage in a busy system (plus that these shared properties hopefully
remain in cache longer than its single-instance counterparts...)
2009-07-01 14:33:19 +02:00
Rainer Gerhards
d6faee67b4 RcvFromIP now also a property
This sets stage to enable use of the property-interface to speed
up things (mildly), the next step to be done. I have also fixed one
regression of yesterday's changes.
2009-07-01 13:28:17 +02:00
Rainer Gerhards
f76881fff3 removed a debugging-left-over, caused compilation failure on some platforms
... because LARGFILE macros were not defined consistenly
2009-07-01 10:34:17 +02:00
Rainer Gerhards
5ecc00336c Merge branch 'beta'
Conflicts:
	ChangeLog
2009-06-30 18:56:43 +02:00
Rainer Gerhards
a0496e7bd4 internal bugfix: object pointer was only reset to NULL when an object was actually destructed.
This most likely had no effect to existing code, but it may also have
caused trouble in remote cases. Similarly, the fix may also cause trouble...
Due to this trouble scenario, the fix deserves its own commit.
2009-06-30 18:54:49 +02:00
Rainer Gerhards
aaffc4281e introduced a new way of handling the RcvFrom property
... plus a fix for a long-time bug in obj-types.h. That lead to
the object pointer only then to become NULL when the object was
actually destructed, I discovered this issue during
introduction of the pRcvFrom property in msg_t, but it potentially had other
effects, too. I am not sure if some experienced instability resulted from this
bug OR if its fix will cause harm to so-far "correctly" running code. The later
may very well be. Thus I will change it only for the current branch and also
the beta, but not in all old builds. Let's see how things evolve.
2009-06-30 18:45:41 +02:00
Rainer Gerhards
e397c34d2a finished transition to using inputName property
... plus some celanup and adding minor missing functionality
(the rule debug info again tell the property name, not just number).
2009-06-30 15:21:15 +02:00
Rainer Gerhards
de84a12f8a introduced the idea of detached properties
some things inside the message can be used over a large number of
messages and need to to be allocated and re-written every time. I now
begin to implement this as a "prop_t" object, first use for the inputName.
Some input modules are already converted, some others to go. Will do
a little performance check on the new method before I go further.

Also, this commit has some cleanup and a few bug fixes that prevented
compiliation in debug mode (I overlooked this as I did not compile
for debug, what I normally do, and the automatted test also does not
do that)
2009-06-29 16:53:26 +02:00
Rainer Gerhards
151c22e579 Merge branch 'beta' into master
Conflicts:
	tools/syslogd.c
2009-06-29 12:47:43 +02:00
Rainer Gerhards
8515376ac9 Merge branch 'v4-stable' into beta
Conflicts:
	ChangeLog
2009-06-29 12:46:00 +02:00
Rainer Gerhards
6511278082 bugfix: ssh session hangs after rsyslgod is started from it
stderr/stdout were not closed to be able to emit error messages,
but this caused ssh sessions to hang. Now we close them after the
initial initialization. See forum thread:
http://kb.monitorware.com/controlling-terminal-issues-t9875.html
2009-06-29 12:40:41 +02:00
Rainer Gerhards
4822715a6e updated testbench to new init() behavior
the deferred activation of input modules broke part of the testbench -
but this was a testbench issue, not one of the patch
2009-06-29 11:37:29 +02:00
Rainer Gerhards
6a29afc83f some cleanup 2009-06-29 11:26:18 +02:00
Michael Terry
e747478051 separate willRun and runInput calls for input modules
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-06-29 11:18:55 +02:00
Michael Terry
ba4806a704 add support for KLogPath 2009-06-29 10:58:38 +02:00
Ronny Egner
279896ebda improved omoracle documentation
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2009-06-27 12:36:34 +02:00
Rainer Gerhards
7ea63db2f9 optimization: propert names are now internally identified by integers 2009-06-26 15:31:40 +02:00
Rainer Gerhards
1f361c5eb9 some optimization, declared some frequently called small stringbuf functions inline 2009-06-26 14:22:00 +02:00
Rainer Gerhards
6be06d50e3 added some basic multithreading tests to testbench 2009-06-26 14:08:30 +02:00
Rainer Gerhards
d88803c8e4 got rid of the recursive requirement for msg_t mutex (finally!) 2009-06-26 13:42:52 +02:00
Rainer Gerhards
464dcf2339 some more stringbuffer optimization 2009-06-25 18:44:48 +02:00
Rainer Gerhards
07a7152ea0 bugfix: msg_t mutex was sometimes initialized twice 2009-06-25 18:23:03 +02:00
Rainer Gerhards
12dc91a157 backported "clean" increment of memory trim counter (not protected by mutex) 2009-06-25 17:09:51 +02:00