summaryrefslogtreecommitdiffstats
path: root/plugins/imuxsock/imuxsock.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v5-beta-gtls-fix' into v5-betaRainer Gerhards2011-03-061-0/+1
|\
| * 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>
* | fixed compile problems on SolarisRainer Gerhards2011-02-231-0/+4
|/
* the last fix introduced another regression, fixed nowRainer Gerhards2011-02-221-5/+8
| | | | | The previous fix left variable lenMsg in an inconsistent state when sanitization actually happend. This could lead to message truncation.
* bugfix: imuxsock does not sanitization at all (regression)Rainer Gerhards2011-02-221-4/+5
| | | | | This also causes problems when NUL characters are present inside the message (as is the case with spamd).
* fixed dumb but important typo in code...Rainer Gerhards2011-02-211-1/+1
| | | | thanks to Michael Biebl for alterting me
* bugfix: imuxsock did no longer remove trailing LFRainer Gerhards2011-02-211-0/+4
| | | | | | | This was a regression from the imuxsock partial rewrite. Happened because the message is no longer run through the standard parsers. Now imuxsock does this sanitization itself. bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=224
* fixed some compile issues in recent systemd patchRainer Gerhards2011-02-111-2/+2
|
* Improved systemd socket activation supportMarius Tomaschewski2011-02-111-44/+45
| | | | | | Support for multiple unix sockets and activation in forking mode Signed-off-by: Marius Tomaschewski <mt@suse.de>
* removed need for math libraryRainer Gerhards2010-10-111-2/+2
| | | | | | 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).
* previous bugfix was incomplete, resolving thisRainer Gerhards2010-10-061-0/+4
|
* bugfix/imuxsock: did not compile on platforms without SCM_CREDENTIALSRainer Gerhards2010-10-061-3/+11
| | | | | | | | Note: we do rate-limiting by the pid and we obtain the pid via SCM_CREDENTIALS socket options. So this patch effectively disables the (new) ratelimiting capability. In a later patch, I'll see that I can provide a global ratelimiting capability, which could always be used (an alternative may be using the tag, will check this out as well).
* Merge branch 'v5-devel-hdfs' into v5-develRainer Gerhards2010-10-051-2/+2
|\
| * omhdfs: more improvementsRainer Gerhards2010-10-011-2/+2
| | | | | | | | | | finally this looks almost production ready for files where no directory path needs to be created
* | imuxsock: fixed dumb mistake of last commitRainer Gerhards2010-10-041-1/+1
| | | | | | | | I left a testing setting in, resulting in /dev/log never being deleted...
* | bugfix/imuxsock: system log socket was deleted in systemd-mode, tooRainer Gerhards2010-10-041-12/+9
|/ | | | | | | | related bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=200 Note that this may not be the ultimate fix. I could not definitely identify the root cause of the problem and so I did some changes that I *think* (but could not verify) that resolved the issue.
* imuxsock: indicate when rate limiting begins, include pid in rl messagesRainer Gerhards2010-09-291-3/+10
| | | | also improved test tool
* doc/imuxsock: added new options to docRainer Gerhards2010-09-281-1/+1
|
* imuxsock: added per-socket hash tables/rate limiters & severity filterRainer Gerhards2010-09-281-55/+104
| | | | | 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-6/+77
|
* added some generic hashtable code by Christopher ClarkRainer Gerhards2010-09-281-0/+1
| | | | found at http://www.cl.cam.ac.uk/~cwc22/hashtable/
* first shot at imuxsock ratelimitingRainer Gerhards2010-09-271-3/+95
| | | | works, but at a global level, need to go down to pid or cgroup
* added support for SCM_CREDENTIALS to imuxsock (now fully working)Rainer Gerhards2010-09-271-105/+92
|
* changed imuxsock to have a somewhat better representation of listenersRainer Gerhards2010-09-271-61/+95
| | | | | still not great, but far better readable (and extendable) than what we had before.
* fixed nitRainer Gerhards2010-09-261-1/+1
|
* patching SCM_CREDENTIALS pid into TAG of imuxsock read messagesRainer Gerhards2010-09-261-38/+141
|
* first shot at SCM_CREDENTIALSRainer Gerhards2010-09-261-3/+64
|
* improved statistics-gathering subsystemRainer Gerhards2010-09-131-0/+18
| | | | | | | | ... 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.
* acquire /dev/log socket optionally from systemdLennart Poettering2010-09-071-5/+45
|
* Merge branch 'beta' into masterRainer Gerhards2010-04-091-2/+11
|\ | | | | | | | | | | | | | | | | | | | | 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-091-2/+11
| |\ | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/Makefile.am runtime/rsyslog.c tests/nettester.c tools/syslogd.c
| | * bugfix: local unix system log socket was deleted even when it was not configuredRainer Gerhards2010-03-261-2/+11
| | | | | | | | | | | | | | | | | | Also made sure that /dev/log will not be processed by imuxsock when running under Solaris -- otherwise, the module may had accidently deleted the log socket and cause problems.
* | | Merge branch 'beta' into masterRainer Gerhards2010-02-101-1/+1
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog tests/parsertest.sh
| * | Merge branch 'v4-beta' into betaRainer Gerhards2010-02-101-1/+1
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imuxsock/imuxsock.c template.c tests/Makefile.am tests/parsertest.sh
| | * bugfix: imuxsock incorrectly stated inputname "imudp"Rainer Gerhards2010-02-061-2/+2
| | | | | | | | | | | | Thanks to Ryan Lynch for reporting this.
* | | Merge branch 'v4-devel'Rainer Gerhards2009-11-171-6/+14
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/rsyslog_conf_modules.html gss-misc.c plugins/imgssapi/imgssapi.c plugins/imudp/imudp.c plugins/imuxsock/imuxsock.c runtime/glbl.c runtime/glbl.h runtime/net.c
| * | integrating varmojfekoj's "unlimited select()" patch into v4-develRainer Gerhards2009-11-171-6/+14
| |\ \
| | * | added option to use unlimited-size select() callsvarmojfekoj2009-11-171-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | Thanks to varmjofekoj for the patch Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | | added new config option $InputUnixListenSocketCreatePathRainer Gerhards2009-09-041-2/+12
| | |/ | |/| | | | | | | backport from v5-devel
* | | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | improved input thread termination for imtcp and imuxsockRainer Gerhards2009-10-161-0/+3
| | |
* | | removed no longer needed msg_t property "bParseHOSTNAME"Rainer Gerhards2009-10-131-2/+0
| | |
* | | changed imuxsock to no longer use deprecated submitAndParseMsg() interfaceRainer Gerhards2009-10-121-16/+64
| | |
* | | added new config option $InputUnixListenSocketCreatePathRainer Gerhards2009-09-041-2/+12
| | | | | | | | | | | | | | | | | | | | | to permit the auto-creation of pathes to additional log sockets. This turns out to be useful if they reside on temporary file systems and rsyslogd starts up before the daemons that create these sockets (rsyslogd always creates the socket itself if it does not exist).
* | | internal: added ability to terminate input modules not via pthread_cancel...Rainer Gerhards2009-07-201-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | ... 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-2/+16
|\| |
| * | finished transition to using inputName propertyRainer Gerhards2009-06-301-2/+16
| |/ | | | | | | | | ... plus some celanup and adding minor missing functionality (the rule debug info again tell the property name, not just number).
* / minor cleanupRainer Gerhards2009-05-201-5/+2
|/
* moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-1/+3
| | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-1/+1
| | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.