summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-05-111-1/+5
|\ | | | | | | | | Conflicts: runtime/queue.c
| * bugfix: invalid processing in QUEUE_FULL conditionRainer Gerhards2011-05-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | If the the multi-submit interface was used and a QUEUE_FULL condition occured, the failed message was properly destructed. However, the rest of the input batch, if it existed, was not processed. So this lead to potential loss of messages and a memory leak. The potential loss of messages was IMHO minor, because they would have been dropped in most cases due to the queue remaining full, but very few lucky ones from the batch may have made it. Anyhow, this has now been changed so that the rest of the batch is properly tried to be enqueued and, if not possible, destructed.
* | bugfix: $LocalHostName was not honored under all circumstancesRainer Gerhards2011-05-091-0/+6
| | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=258
* | Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-05-031-0/+11
|\|
| * bugfix: memory and file descriptor leak in stream processingRainer Gerhards2011-05-031-0/+11
| | | | | | | | | | | | | | | | Leaks could occur under some circumstances if the file stream handler errored out during the open call. Among others, this could cause very big memory leaks if there were a problem with unreadable disk queue files. In regard to the memory leak, this closes: http://bugzilla.adiscon.com/show_bug.cgi?id=256
* | Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-05-021-2/+4
|\| | | | | | | | | Conflicts: tcpsrv.c
| * slightly more informative errmsg when TCP connection is abortedRainer Gerhards2011-05-021-2/+4
| |
| * bugfix: abort if imfile reads file line of more than 64KiBRainer Gerhards2011-02-101-1/+1
| | | | | | | | | | Thanks to Peter Eisentraut for reporting and analysing this problem. bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221
* | bugfix: $myhostname not available in RainerScript (and no error message)Rainer Gerhards2011-04-143-5/+21
| | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=233
* | cleanup: initially thought temporary debug message made durable ;)Rainer Gerhards2011-04-121-2/+2
| | | | | | | | | | It has proven to be very valuable, so now it is properly formatted inside the source.
* | bugfix: race condition in deferred name resolutionRainer Gerhards2011-04-081-115/+117
| | | | | | | | | | | | Note that this actually is a very small change, but I needed to shuffle a lot of code around in order to make it compile (due to required define order...).
* | stop adding data to DA queue when low watermark has been reachedRainer Gerhards2011-03-301-0/+4
| | | | | | | | | | potentially closes: http://bugzilla.adiscon.com/show_bug.cgi?id=241 But needs more verification.
* | bugfix: PRI was invalid on Solaris for message from local log socketCorey Smith2011-03-241-3/+3
| | | | | | | | Signed-off-by: root <root@localhost.localdomain>
* | enhance: added $BOM system property to ease writing byte order masksRainer Gerhards2011-03-222-0/+11
| |
* | backporting patch for clean make distcheckRainer Gerhards2011-03-161-0/+3
| |
* | Fall back to epoll_create() if epoll_create1() is not availableMichael Biebl2011-03-141-5/+8
| | | | | | | | | | | | | | | | | | epoll_create1() was introduced in Linux kernel 2.6.27. If rsyslog was compiled on a newer kernel but run on a kernel older than 2.6.27, remote syslog fails. Apply a runtime check for epoll_create1() and fall back to epoll_create() in this case. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=617996
* | Merge branch 'v5-beta-gtls-fix' into v5-betaRainer Gerhards2011-03-0610-4/+85
|\ \
| * | bugfix: regression: memory leak in module loaderBojan Smojver2011-03-042-13/+21
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | added work-around for bug in gtls, which causes fd leak when using TLSBojan Smojver2011-02-2310-4/+77
| | | | | | | | | | | | | | | | | | | | | | | | The capability has been added for module to specify that they do not like being unloaded. related bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=222 Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | bugfix: potential abort condition when $RepeatedMsgReduction set to onRainer Gerhards2011-03-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | as well as potentially in a number of other places where MsgDup() was used. This only happened when the imudp input module was used and it depended on name resolution not yet had taken place. In other words, this was a strange problem that could lead to hard to diagnose instability. So if you experience instability, chances are good that this fix will help.
* | | bugfix: fixed a memory leak and potential abort conditionRainer Gerhards2011-02-252-10/+21
| | | | | | | | | | | | | | | | | | | | | this could happen if multiple rulesets were used and some output batches contained messages belonging to more than one ruleset. fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=226 fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=218
* | | Merge branch 'v5-stable' into v5-betaRainer Gerhards2011-02-251-0/+5
|\ \ \ | |/ / |/| | | | | | | | Conflicts: ChangeLog
| * | bugfix: memory leak when $RepeatedMsgReduction on was usedRainer Gerhards2011-02-251-0/+5
| | | | | | | | | | | | bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=225
* | | added debug support for trying to find well-hidden bugRainer Gerhards2011-02-232-1/+12
| | |
* | | bugfix: fixed compile problem due to empty structsDražen Kačar2011-02-164-0/+4
| | | | | | | | | | | | | | | | | | | | | this occured only on some platforms/compilers. thanks to Dražen Kačar for the fix Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | improved error reporting for $WorkDirectoryRainer Gerhards2011-02-152-1/+37
| | | | | | | | | | | | | | | non-existance and other detectable problems are now reported, and the work directory is NOT set in this case
* | | bugfix: very long running actions could prevent shutdown under some ↵Rainer Gerhards2011-02-111-1/+1
| | | | | | | | | | | | | | | | | | circumstances This has now been solved, at least for common situations.
* | | removed no longer needed codeRainer Gerhards2011-02-112-3/+0
| | |
* | | bugfix: queue engine did not properly slow down inputs in FULL_DELAY mode...Rainer Gerhards2011-02-111-1/+12
| | | | | | | | | | | | | | | | | | ...when in disk-assisted mode. This especially affected imfile, which created unnecessarily queue files if a large set of input file data was to process.
* | | bugfix: abort if imfile reads file line of more than 64KiBRainer Gerhards2011-02-101-1/+1
| | | | | | | | | | | | | | | Thanks to Peter Eisentraut for reporting and analysing this problem. bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221
* | | cosmetic: making comments in stream.c a bit more readableRainer Gerhards2011-02-101-4/+6
| | |
* | | Merge branch 'v5-stable' into v5-develRainer Gerhards2011-01-261-10/+11
|\| | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | Merge branch 'v4-stable' into v5-stableRainer Gerhards2011-01-261-10/+11
| |\|
| | * imfile bugfix: potential duplication of log contentRainer Gerhards2011-01-101-13/+9
| | | | | | | | | | | | | | | | | | Under some circumstances an invalid truncation was detected. This code has now been removed, a file change (and thus resent) is only detected if the inode number changes.
| | * forgot the actual patch with the last commit :(Rainer Gerhards2010-12-171-1/+1
| | |
| | * bugfix: imfile potentially duplicates linesRainer Gerhards2010-12-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can happen when 0 bytes are read from the input file, and some writer appends data to the file BEFORE we check if a rollover happens. The check for rollover uses the inode and size as a criterion. So far, we checked for equality of sizes, which is not given in this scenario, but that does not indicate a rollover. From the source code comments: Note that when we check the size, we MUST NOT check for equality. The reason is that the file may have been written right after we did try to read (so the file size has increased). That is NOT in indicator of a rollover (this is an actual bug scenario we experienced). So we need to check if the new size is smaller than what we already have seen!
* | | enhanced imfile to support multi-line messagesDavid Lang2011-01-252-28/+88
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | Merge branch 'v5.6.2-newimudp' into v5-devel-newimudpRainer Gerhards2011-01-104-1/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: plugins/imudp/imudp.c threads.c
| * | | improved imudp real-time scheduling support & bugfixDražen Kačar2011-01-104-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The original code had quite some issues, which are fixed by this commit. Also we do more error checking now. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | Merge branch 'v4-devel' into v5-develRainer Gerhards2010-12-171-7/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/imfile.html doc/manual.html plugins/imudp/imudp.c runtime/msg.h tools/syslogd.c
| * | | | added $IMUDPSchedulingPolicy and $IMUDPSchedulingPriority config settingsRainer Gerhards2010-12-171-0/+1
| | | | |
| * | | | added $LocalHostName config directive & some bugfixingRainer Gerhards2010-12-162-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added $LocalHostName config directive - bugfix: local hostname was pulled too-early, so that some config directives (namely FQDN settings) did not have any effect
| * | | | Merge branch 'v4-stable' into v4-develRainer Gerhards2010-12-168-18/+11
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | Conflicts: runtime/parser.c
| * | | | bugfix: atomic increment for msg object may not work correct on all platforms.Chris Metcalf2010-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | | | Merge branch 'v4-stable' into v4-develRainer Gerhards2010-11-241-0/+17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac
| * \ \ \ \ Merge branch 'v4-stable' into v4-develRainer Gerhards2010-10-192-2/+9
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/cfsysline.c tools/ompipe.c
* | \ \ \ \ \ Merge branch 'v5-stable' into v5-develRainer Gerhards2010-12-178-26/+25
|\ \ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | | | | | bug fixes in action processingRainer Gerhards2010-12-171-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - bugfix: action processor released mememory too early, resulting in potential issue in retry cases (but very unlikely due to another bug, which I also fixed -- only after the fix this problem here became actually visible). - bugfix: batches which had actions in error were not properly retried in all cases
| * | | | | | bugfix: batch processing flagged invalid message as "bad" under some ↵Rainer Gerhards2010-12-163-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | circumstances also fixed some cosmetic nits
| * | | | | | Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-12-165-12/+6
| |\ \ \ \ \ \ | | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/parser.c runtime/queue.c runtime/wtp.c template.c threads.c tools/syslogd.c