summaryrefslogtreecommitdiffstats
path: root/plugins/imdiag
Commit message (Collapse)AuthorAgeFilesLines
* 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