summaryrefslogtreecommitdiffstats
path: root/plugins/imdiag
Commit message (Collapse)AuthorAgeFilesLines
* milestone: added module config namesRainer Gerhards2011-07-201-0/+1
|
* reduced sporadic failures during make checkRainer Gerhards2011-06-271-9/+14
| | | | | | | | | the imdiag implementation of "queue empty" was a bit racy, which sometimes lead to too-early termination of rsyslogd and thus some small memory leaks (which in turn showed up as problems during make check). The current architecture is not able to 100% guard against this, but the probleme probability has been reduced (and it showed to improve in practice).
* step: generalized new config interface for all module typesRainer Gerhards2011-05-061-0/+2
|
* step: imtcp moved to new config interfaceRainer Gerhards2011-05-051-2/+2
| | | | as far as we know that new interface right now ;)
* step: put plumbing in place for new input module config systemRainer Gerhards2011-05-031-0/+29
|
* Merge branch 'v5-devel'Rainer Gerhards2011-03-311-1/+4
|\ | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html doc/rsyslog_conf.html runtime/msg.c runtime/rsyslog.h template.c
| * fixed problem in testbench & added new test (not yet integrated)Rainer Gerhards2011-03-301-1/+4
| | | | | | | | | | The test is a setup scenario for this bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=241
| * backporting patch for clean make distcheckRainer Gerhards2011-03-161-0/+3
| |
* | Merge branch 'v5-devel'Rainer Gerhards2011-03-141-0/+3
|\ \ | | | | | | | | | | | | Conflicts: tests/diag.sh
| * | fixing cosmetic memory leak in imdiag, imfileRainer Gerhards2011-03-141-0/+3
| |/ | | | | | | | | | | This had no real consequences, as it happend exactly once during the runtime, so the OS cleaned up. However, it broke the valgrind testbench.
* | Merge branch 'v5-beta'Rainer Gerhards2011-03-111-0/+1
|\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/omlibdbi/omlibdbi.c tests/Makefile.am tests/diag.sh
| * forgot to backport imdiag mem leak fix -- now doneRainer Gerhards2011-03-061-0/+4
| |
| * added work-around for bug in gtls, which causes fd leak when using TLSBojan Smojver2011-02-231-0/+1
| | | | | | | | | | | | | | | | 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>
* | improved testbenchRainer Gerhards2011-03-011-0/+4
| | | | | | | | | | - added valgrind-based test (the first one ever ;)) - fixed memory leak in imdiag (guess how this was detected...)
* | moving towards scoping inside rsyslog.confRainer Gerhards2010-07-211-7/+7
|/ | | | first step: adding object-type specifier to config statement table
* fixing some potential segfault conditionsRainer Gerhards2009-11-251-0/+5
|
* enhanced test environment (including testbench)Rainer Gerhards2009-10-221-1/+1
| | | | | | | | support for enhancing probability of memory addressing failure by using non-NULL default value for malloced memory (optional, only if requested by configure option). This helps to track down some otherwise undetected issues within the testbench and is expected to be very useful in the future.
* new queue engine - initial commit (probably not 100% working!)Rainer Gerhards2009-10-141-0/+3
| | | | | | | | | | simplified and thus speeded up the queue engine, also fixed some potential race conditions (in very unusual shutdown conditions) along the way. The threading model has seriously changes, so there may be some regressions. NOTE: the code passed basic tests, but there is still more work and testing to be done. This commit should be treated with care.
* removed no longer needed msg_t property "bParseHOSTNAME"Rainer Gerhards2009-10-131-1/+0
|
* internal: added ability to terminate input modules not via pthread_cancel...Rainer Gerhards2009-07-201-0/+7
| | | | | | | | ... but an alternate approach via pthread_kill. This is somewhat safer as we do not need to think about the cancel-safeness of all libraries we use. However, not all inputs can easily supported, so this now is a feature that can be requested by the input module (the most important ones request it).
* Merge branch 'master' into v5-develRainer Gerhards2009-07-011-4/+28
|\
| * RcvFromIP now also a propertyRainer Gerhards2009-07-011-1/+8
| | | | | | | | | | | | 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.
| * introduced a new way of handling the RcvFrom propertyRainer Gerhards2009-06-301-1/+8
| | | | | | | | | | | | | | | | | | | | | | ... 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.
| * finished transition to using inputName propertyRainer Gerhards2009-06-301-2/+12
| | | | | | | | | | ... plus some celanup and adding minor missing functionality (the rule debug info again tell the property name, not just number).
| * introduced the idea of detached propertiesRainer Gerhards2009-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Merge branch 'omfile' into tmpRainer Gerhards2009-06-221-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a complex manual merge, especially in action.c. So if there occur some problems, this would be a good point to start troubleshooting. I run a couple of tests before commiting and they all went well. Conflicts: action.c action.h runtime/queue.c runtime/queue.h runtime/wti.c runtime/wti.h
| * cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-2/+1
| |
* | Merge branch 'omfile' into v5-develRainer Gerhards2009-06-161-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this was NOT a trivial merge, and there may be some issues. This needs to be seen when we continue developing. Conflicts: runtime/msg.h runtime/obj.h runtime/queue.c runtime/srUtils.h runtime/stream.c runtime/stream.h runtime/wti.c tests/Makefile.am tools/omfile.c tools/syslogd.c
| * some performance optimizationsRainer Gerhards2009-06-161-1/+1
| | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | Merge branch 'master' into v5-develRainer Gerhards2009-05-291-3/+0
|\|
| * fix: import from beta accidently disable imdiagRainer Gerhards2009-05-291-3/+0
| |
* | Merge branch 'master' into v5-develRainer Gerhards2009-05-291-0/+3
|\|
| * Merge branch 'beta'Rainer Gerhards2009-05-291-0/+3
| |\
| | * fixed problem in syslog-protocol (now RFC5424) parserRainer Gerhards2009-05-291-0/+3
| | | | | | | | | | | | ... as well as some other minor issues.
* | | preserving current changesRainer Gerhards2009-05-281-0/+4
| | | | | | | | | | | | | | | | | | ... in preparation for some larger changes - I need to apply some serious design changes, as the current system does not play well at all with ultra-reliable queues. Will do that in a totally new version.
* | | adapted testbench to new capabilitiesRainer Gerhards2009-05-271-1/+1
|/ / | | | | | | | | ... and now make check fails again, we have obviously found some new bugs thanks to the additional cases
* | greatly enhanced testbenchRainer Gerhards2009-05-271-13/+132
| | | | | | | | | | | | | | | | | | The imdiag module now can very effectively inject messages, which also frees us from uncertainties of tcp reception and processing. All shell script based tests have been modularized, what makes it far easier to create new tests. Also, the test bench now executes more reliable and much faster, because we can now rely on actual engine information where we previously did just a dumb sleep.
* | added new testing module imdiagRainer Gerhards2009-05-251-52/+195
| | | | | | | | | | which enables to talk to the rsyslog core at runtime. The current implementation is only a beginning, but can be expanded over time
* | made imdiag *just* compile & some cleanupRainer Gerhards2009-05-201-16/+20
|/ | | | | | imdiag was never finished (not even really begun), but now I need it. I made the few things that are available compile, but more serious work is required.
* make all cflags and libs variables uppercaseMichael Biebl2009-02-241-1/+1
| | | | | | pkg-config uses uppercase for its _CFLAGS and _LIBS variable names. So we follow suit and convert all _cflags and _libs variables to uppercase for more consistency.
* begun implementing a diagnostic plugin (not yet completed)Rainer Gerhards2008-07-282-0/+203