summaryrefslogtreecommitdiffstats
path: root/runtime
Commit message (Collapse)AuthorAgeFilesLines
* imfile: bug fixesRainer Gerhards2010-10-151-3/+3
| | | | | | | | either one or two bugs fixed ;) Definitely a problem where no state file is written when working with relative pathes. Also, some problems with offsets should be fixed for very large files. However, I could not yet experimentally show the issue so it probably needs more verification.
* removed need for math libraryRainer Gerhards2010-10-111-3/+13
| | | | | | by doing math a little bit more optimal in hash table code. Also reduced memory requirement for imuxsock hash tables (expected number of connections was set too high -- table can be extended dynamically).
* omhdfs: support for HUP addedRainer Gerhards2010-10-045-4/+8
|
* omhdfs: more improvementsRainer Gerhards2010-10-013-4/+17
| | | | | finally this looks almost production ready for files where no directory path needs to be created
* omhdfs: files now kept inside a hashtable for use by multiple actionsRainer Gerhards2010-10-012-1/+30
| | | | Note:compiles, but not yet tested
* omhdfs: cleanup and lots of improvementRainer Gerhards2010-10-011-0/+3
| | | | | | now things look much better, also done some prep in order to support a file cache (we need this for multiple selectors writing to the same file).
* build system: fixed some minor issuesRainer Gerhards2010-09-282-0/+2
|
* imuxsock: added per-socket hash tables/rate limiters & severity filterRainer Gerhards2010-09-281-0/+1
| | | | | rate limiting now applies only to messages with a given severity or above. By default, emergency messages are NOT rate-limited.
* imuxsock: changed to per-pid ratelimitingRainer Gerhards2010-09-281-0/+11
|
* added some generic hashtable code by Christopher ClarkRainer Gerhards2010-09-2810-0/+1283
| | | | found at http://www.cl.cam.ac.uk/~cwc22/hashtable/
* patching SCM_CREDENTIALS pid into TAG of imuxsock read messagesRainer Gerhards2010-09-261-0/+1
|
* minor: added version number to some error messagesRainer Gerhards2010-09-171-3/+3
|
* fixed compile problems on Solarisv5.7.0Rainer Gerhards2010-09-161-2/+2
|
* improved statistics-gathering subsystemRainer Gerhards2010-09-137-2/+486
| | | | | | | | ... well, actually this is a first real implementation of this subsystem. I have added a counter registry, a way to access the countres (as readable string) and a way to define and maintem them. Also, module impstats has been updated to utilize the new system. Finally, I added some counters. I hope that this sets the baseline for useful future enhancements.
* Merge branch 'systemd' into v5-develRainer Gerhards2010-09-083-2/+703
|\
| * moved systemd interface to rsyslog convenience libRainer Gerhards2010-09-083-28/+19
| | | | | | | | | | | | | | Mostly a refresh of sd-daemon.[ch] from its source plus some make file changes. We now have systemd interfaces inside rsyslog, so that all plugins interested can call the interfaces. Seems not to be totally necessary right now, but will help in the long term.
| * added forgotten filesRainer Gerhards2010-09-072-0/+705
| |
| * acquire /dev/log socket optionally from systemdLennart Poettering2010-09-071-0/+5
| |
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-08-111-0/+4
|\ \ | | | | | | | | | | | | | | | Conflicts: Makefile.am tests/tcpflood.c
| * \ Merge branch 'v4-stable-imptcp' into tmpRainer Gerhards2010-08-111-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.am configure.ac runtime/rsyslog.h tests/Makefile.am
| | * | added imptcpRainer Gerhards2010-08-101-0/+4
| | | | | | | | | | | | | | | | | | | | imptcp is a simplified, Linux-specific and potentielly fast syslog plain tcp input plugin (NOT supporting TLS!)
| * | | solving an error ID collision with v5 buildRainer Gerhards2010-08-061-1/+1
| | | |
* | | | Merge branch 'v4-devel'Rainer Gerhards2010-08-061-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog Makefile.am configure.ac doc/rsyslog_conf_modules.html runtime/rsyslog.h tests/Makefile.am
| * | | added omuxsock, which permits to write message to local Unix socketsRainer Gerhards2010-08-061-0/+1
| | | | | | | | | | | | | | | | this is the counterpart to imuxsock, enabling fast local forwarding
* | | | Merge branch 'v4-devel' into masterRainer Gerhards2010-08-051-1/+1
|\| | | | |_|/ |/| | | | | | | | Conflicts: ChangeLog
| * | Merge branch 'v4-stable' into v4-develRainer Gerhards2010-08-051-1/+1
| |\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| | * Merge branch 'v3-stable' into v4-stableRainer Gerhards2010-08-051-1/+1
| | |\ | | | | | | | | | | | | | | | | Conflicts: runtime/conf.c
| | | * program name filter ! in the configuration cannot be resetKiss Gabor (Bitman)2010-08-051-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | Merge branch 'v4-devel'Rainer Gerhards2010-07-051-0/+1
|\| | |
| * | | Merge branch 'v4-stable' into v4-develRainer Gerhards2010-07-051-0/+1
| |\| |
| | * | bugfix: segfault on HUP when "HUPIsRestart" was set to "on"varmojfekoj2010-07-051-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | | Merge branch 'tmp' into concurrent-outputRainer Gerhards2010-06-242-6/+12
|\ \ \ \
| * | | | made hardcoded max string number persistentRainer Gerhards2010-06-242-6/+12
| | | | | | | | | | | | | | | | | | | | see commit for reasoning
* | | | | added missing support for systems without atomic instructionsRainer Gerhards2010-06-241-0/+15
|/ / / /
* | | | bugfix: "$ActionExecOnlyWhenPreviousIsSuspended on" was brokenRainer Gerhards2010-06-244-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that, as it looks, the directive was already broken in previous v5 versions. So while I solved what looked like a (intentional) regression from the performance tuning, I actually solved a previous regression as well ;) I have also added new test cases to the testbench in order to capture such problems in the future. This version does now look pretty good in shape.
* | | | fixed a couple of regressionsRainer Gerhards2010-06-235-34/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-156-16/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-105-36/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-102-0/+7
| | | | | | | | | | | | | | | | | | | | as well as some work in preparation of storing doAction params inside the batch
* | | | Merge branch 'concurrent-output' into tmpRainer Gerhards2010-06-104-21/+43
|\ \ \ \
| * | | | main msg q consumer now preprocesses messages before doing rule processingRainer Gerhards2010-06-091-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-092-18/+41
| | | | | | | | | | | | | | | | | | | | | | | | | ... but only for batch enqueues. This will not help much with the current code, but will play well with upcoming changes.
| * | | | added support for high-performance action queue submission if not all mark ↵Rainer Gerhards2010-06-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | messages should be logged this was previously not properly handeld. This is also the first occurence of a (real) CAS loop inside rsyslog. Note that the performance is now very well in the default configuration, and mark message directives are still correctly being handled. So this code looks close to final, but needs to have some bug cleanup as the testsuite shows.
* | | | | 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-082-12/+25
| | | | | | | | | | | | | | | | also: bugfix: mutexes used to similate atomic instructions were not destructed
* | | | finshed implementation of strgen modulesRainer Gerhards2010-06-045-25/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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-018-6/+439
| | | | | | | | | | | | | | | | | | | | and a first built-in strgen module. Some tweaks and more default strgens are needed, but the code doesn't look too bad ;)
* | | | experimental commit: facility to generate template via C functionRainer Gerhards2010-06-011-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a test done to try to generate templates with C code, via a new (potentially to-be-implemented) class of template modules. We have a rough POC inside this code, and it showed around 5% or better speedup. So it semms worth continuing in this direction. Note that this experimental commit works correct, but does any template in the form of $template tpl,=somewhat will lead to fixed template expansion based on the default file format.
* | | | fixed race conditions during queue shutdown (DA case, disks active)Rainer Gerhards2010-05-184-15/+33
| | | |
* | | | added new cancel-reduced action thread termination methodRainer Gerhards2010-05-172-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now manage to cancel threads that block inside a retry loop to terminate without the need to cancel the thread. Avoiding cancellation helps keep the system complexity minimal and thus provides for better stability. This also solves some issues with improper shutdown when inside an action retry loop.