summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* added support to save/restore rsyslog core action settings...Rainer Gerhards2010-07-231-5/+0
| | | | | ... but not those of plugins (which are at least as important as the core ones). So this is an interim commit.
* moving towards scoping inside rsyslog.confRainer Gerhards2010-07-213-77/+77
| | | | first step: adding object-type specifier to config statement table
* fixed a couple of regressionsRainer Gerhards2010-06-234-4/+0
| | | | | | | | by implementing some code that was missing so far ;) as well as finding some real bugs. I also did some general cleanup, removing debug strings and such. This code should be fairly OK to use, except when "exec only when previous action was suspended" is used -- this is NOT yet re-implemented in the tuned engine.
* milestone(BUGGY): batch now pushed down to actionRainer Gerhards2010-06-151-12/+1
| | | | | | | at least in important cases (not for non-direct action queues and some other minor things). This version is definitely buggy, but may be tried with success on a non-production system. I will continue to work on the correctness, but needed to commit now to get a baseline.
* milestone commit(BUGGY): batch is now handed down to rule processingRainer Gerhards2010-06-101-9/+17
| | | | | | | | Now, the full batch is passed down to the rule, which then enqueues the elements as single messages. Note that this code has some known defects and needs more changes until it is correct again. This is primarily a commit to be able to return to a known-(somewhat)-good state.
* some cleanupRainer Gerhards2010-06-101-1/+0
| | | | | as well as some work in preparation of storing doAction params inside the batch
* Merge branch 'concurrent-output' into tmpRainer Gerhards2010-06-101-26/+48
|\
| * main msg q consumer now preprocesses messages before doing rule processingRainer Gerhards2010-06-091-25/+47
| | | | | | | | | | | | | | things like ACL check and message parsing. This leads to a greater level of concurrent processing. Beware, though, that this commit duplicates some messages. May be a regression from this or an earlier commit. I will soon sort out.
| * somewhat improved direct mode queue performanceRainer Gerhards2010-06-091-1/+1
| | | | | | | | | | ... but only for batch enqueues. This will not help much with the current code, but will play well with upcoming changes.
* | fixing msg duplication & loss regression, causes slowdownRainer Gerhards2010-06-101-1/+1
|/ | | | | | | | messages could get lost or be duplicated due to non-proper sync of transactions. This is a notable slowdown again, but we know how to get back concurrency, it just takes "some" more programming. It is important now to come back to correct code, so that we can base further improvements on that.
* bugfix: regression caused more locking action in msg.c than necessaryRainer Gerhards2010-06-081-29/+7
| | | | also: bugfix: mutexes used to similate atomic instructions were not destructed
* finshed implementation of strgen modulesRainer Gerhards2010-06-049-81/+574
| | | | | | and also provided four build-in modules for the most common use cases, hopefully resulting in a speedup of around 5% for typical rsyslog processing.
* first implementation of strgen interfaceRainer Gerhards2010-06-014-0/+191
| | | | | and a first built-in strgen module. Some tweaks and more default strgens are needed, but the code doesn't look too bad ;)
* some more cleanup and a nasty little bug i doDie()Rainer Gerhards2010-05-101-13/+0
|
* improved syncdemo tool - added "partition" mode...Rainer Gerhards2010-05-051-9/+47
| | | | | ... and also analyzed the resulting assembly code to find out weak spots for the test. Explanations and new suggestions added.
* added semaphores to sync test scenarioRainer Gerhards2010-05-021-12/+32
|
* enhanced tool to test timing of sync methodsRainer Gerhards2010-05-021-29/+93
|
* Merge branch 'v4-devel' into tmpRainer Gerhards2010-04-261-0/+20
|\
| * added new $Sleep directive to hold processing for a couple of seconds during ↵Rainer Gerhards2010-04-261-0/+20
| | | | | | | | startup
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-191-0/+1
|\| | | | | | | | | Conflicts: runtime/msg.h
| * minor cleanupRainer Gerhards2010-04-192-2/+3
| |
* | some cleanupRainer Gerhards2010-04-192-2/+3
| |
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-191-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog Makefile.am configure.ac doc/manual.html runtime/debug.c runtime/rsyslog.h tests/Makefile.am tests/diag.sh tests/nettester.c tools/syslogd.c
| * Merge branch 'v4-stable-solaris' into v4-develRainer Gerhards2010-04-1212-78/+431
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tools/omfile.c tools/syslogd.c
| * \ Merge branch 'v4-beta' into tmpRainer Gerhards2010-01-264-8/+25
| |\ \ | | | | | | | | | | | | | | | | Conflicts: ChangeLog
* | | | (minor) some improvements to syncdemoRainer Gerhards2010-04-141-21/+20
| | | |
* | | | added tool to demo/evaluate various sync methodsRainer Gerhards2010-04-131-0/+319
| | | | | | | | | | | | | | | | | | | | | | | | This tool is primarily meant as an aid during concept development, NOT as a usable end-user tool to be built (thus it is not inside the build system)
* | | | Merge branch 'beta' into masterRainer Gerhards2010-04-094-40/+65
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac plugins/imudp/imudp.c runtime/stream.h tests/Makefile.am tests/diag.sh tools/omfile.c
| * \ \ \ Merge branch 'v4-stable-solaris' into betaRainer Gerhards2010-04-093-4/+8
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/Makefile.am runtime/rsyslog.c tests/nettester.c tools/syslogd.c
| | * | | Merge branch 'v4-stable' into v4-stable-solarisRainer Gerhards2010-04-071-2/+3
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog tests/Makefile.am tests/tcpflood.c
| | | * | | bugfix: default for $OMFileFlushOnTXEnd was wrong ("off").Rainer Gerhards2010-04-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This, in default mode, caused buffered writing to be used, what means that it looked like no output were written or partial lines. Thanks to Michael Biebl for pointing out this bug.
| | | * | | temporary bugfix replaced by permanent one for...Rainer Gerhards2010-03-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...message-induced off-by-one error (potential segfault) (see 4.6.2) The analysis has been completed and a better fix been crafted and integrated.
| | * | | | enhanced nettester tool so that it re-uses it's callers environmentRainer Gerhards2010-04-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this enables us to work with the "usual" environment tweaks (for debugging and other purposes), without the need for any special handling in nettester itself
| | * | | | Merge branch 'v4-stable' into v4-stable-solarisRainer Gerhards2010-03-251-1/+1
| | |\| | |
| | * | | | Merge branch 'v4-stable' into v4-stable-solarisRainer Gerhards2010-03-251-19/+22
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| | * \ \ \ \ Merge branch 'v4-stable' into v4-stable-solarisRainer Gerhards2010-03-251-21/+25
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| | * | | | | | added some diagnostics info to startupRainer Gerhards2010-03-231-2/+4
| | | | | | | |
| | * | | | | | Merge branch 'v4-stable' into v4-stable-solarisRainer Gerhards2010-03-233-7/+24
| | |\ \ \ \ \ \
| * | \ \ \ \ \ \ Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-03-293-38/+60
| |\ \ \ \ \ \ \ \ | | | |_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html runtime/debug.c runtime/stream.c tests/Makefile.am tests/diskqueue.sh tests/nettester.c tools/omfile.c
| | * | | | | | | $OMFileAsyncWriting directive did not work properlyRainer Gerhards2010-03-251-1/+1
| | | |_|_|/ / / | | |/| | | | |
| | * | | | | | new feature: $OMFileAsyncWriting directive addedRainer Gerhards2010-03-251-19/+22
| | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | it permits to specifiy if asynchronous writing should be done or not
| | * | | | | undo experimental commit dccadb677c5a6b8379f631e4c1f14c8c4089d4a6Rainer Gerhards2010-03-251-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Further testing turned out that the rsyslog core works correctly and this fix is not needed. The concurrency we saw was actually caused by other actions (even processes) during directory creation. See commit 9e5b31fc44136dbcc1e443cfe7714e9daf97d844 for further details.
| | * | | | | bugfix: potential segfault in dynafile cacheRainer Gerhards2010-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug was triggered by an open failure. The the cache was full and a new entry needed to be placed inside it, a victim for eviction was selected. That victim was freed, then the open of the new file tried. If the open failed, the victim entry was still freed, and the function exited. However, on next invocation and cache search, the victim entry was used as if it were populated, most probably resulting in a segfault.
| | * | | | | streamline dynafile cache entry deletion a bitRainer Gerhards2010-03-231-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old code looks a bit "strange", though not necessarily incorrect. The new code looks correct and is probably less irritating during bug hunting.
| | * | | | | bugfix: potential re-use of free()ed file stream object in omfileRainer Gerhards2010-03-231-7/+21
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when dynaCache is enabled, the cache is full, a new entry needs to be allocated, thus the LRU discarded, then a new entry is opend and that fails. In that case, it looks like the discarded stream may be reused improperly (based on code analysis, test case and confirmation pending)
| | * | | | previous (experimental) patch was somewhat incorrect, fixedRainer Gerhards2010-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This is what caused the new test to fail...
| | * | | | exp: made omfile ensure that it is not called twice in parallel on the same ↵Rainer Gerhards2010-03-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | file instance In theory, the rsyslog core should never call in parallel into an output module for the same instance. However, it looks like this seems to happen under (strange?) circumstances. I have now enhanced omfile so that it guards itself against being called in parallel on the same instance data. This is done to help troubleshooting and may stay as an interim solution if it proves to solve an anomaly we see in at least one installation (to trigger this problem, an extremely large traffic volume is needed).
| | * | | | fixed regression from previos (yet unrelease) $omfileFlushOnTXEnd fixtemp.4.6.1.10Rainer Gerhards2010-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous fix fixed an issue with on/off bying used in the exact wrong semantic. It corrected the situation, but failed to fix one spot where the wrong semantics were used. This is done with this commit. Note that this is NOT a bug seen in any released version.
| | * | | | new feature: "." action type added to support writing files to relative pathesRainer Gerhards2010-03-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | (this is primarily meant as a debug aid)
| | * | | | bugfix: recent patch to fix small memory leak could cause invalid free.Rainer Gerhards2010-03-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This could only happen during config file parsing.