summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: parser did not correctly parse fields in UDP-received messagesRainer Gerhards2009-03-101-0/+2
|
* added ERE support in filter conditionsRainer Gerhards2009-03-041-1/+6
| | | | new comparison operation "ereregex"
* Merge branch 'beta'Rainer Gerhards2009-01-301-0/+5
|\
| * added info if atomic ops are available to rsyslogd -v outputRainer Gerhards2009-01-301-0/+5
| |
* | Merge branch 'beta'Rainer Gerhards2009-01-301-1/+1
|\|
| * Merge branch 'v3-stable' into beta, conclude fix for raceRainer Gerhards2009-01-301-1/+1
| |\ | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| | * bugfix: invalid mutex access in msg.cRainer Gerhards2009-01-301-1/+1
| | |
| | * Merge branch 'debian_lenny' into v3-stableRainer Gerhards2008-12-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html net.h plugins/imtcp/imtcp.c plugins/imudp/imudp.c runtime/net.c runtime/rsyslog.h tcps_sess.c tcpsrv.c
* | | Merge branch 'drd-testing'Rainer Gerhards2009-01-291-0/+1
|\ \ \
| * | | bugfix: unitialized mutex was used in msg.c:getPRIRainer Gerhards2009-01-261-0/+1
| | | | | | | | | | | | | | | | | | | | This was subtle, because getPRI is called as part of the debugging code (always executed) in syslogd.c:logmsg.
* | | | Merge branch 'beta'Rainer Gerhards2009-01-271-2/+4
|\ \ \ \ | |/ / / |/| / / | |/ / | | | Conflicts: tools/omfile.c
| * | bugfix: the string "Do Die" was accidently emited upon exit in non-debug modevarmojfekoj2009-01-151-2/+4
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | bufgix: $PreserveFQDN was not properly handled for locally emitted messagesRainer Gerhards2008-12-201-1/+4
| | |
* | | Merge branch 'beta'Rainer Gerhards2008-12-101-3/+4
|\| |
| * | some legacy options were not correctly processedvarmojfekoj2008-12-101-3/+4
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | added ability to drop privilegesRainer Gerhards2008-11-261-3/+40
| | | | | | | | | | | | | | | | | | | | | Added $PrivDropToGroup, $PrivDropToUser, $PrivDropToGroupID, $PrivDropToUserID config directives to enable dropping privileges. This is an effort to provide a security enhancement. For the limits of this approach, see http://wiki.rsyslog.com/index.php/Security
* | | exprimental implementaiton of $PrivDropToUser directiveRainer Gerhards2008-11-191-4/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... which permits to drop root privileges. This is not a completely secure way of dropping permissions, e.g. the group permissions need to be dropped, too. Also, there are several vulnerability Windows (see code comments). Finally, at least the imklog module on linux does not work when privileges are dropped. This code may still be a valuable addition, and so I have created an experimental branch so that people can check it out.
* | | added configuration directive "HUPisRestart"Rainer Gerhards2008-10-231-10/+49
| | | | | | | | | | | | | | | ...which enables to configure HUP to be either a full restart or "just" a leightweight way to close open files
* | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-9/+12
| | | | | | | | | | | | | | | | | | 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.
* | | fixing segfault caused by all inputs but imudpRainer Gerhards2008-10-091-1/+2
| | |
* | | reordered imudp processing.Rainer Gerhards2008-10-081-6/+12
| | | | | | | | | | | | | | | | | | Message parsing is now done as part of main message queue worker processing (was part of the input thread) This should also improve performance, as potentially more work is done in parallel.
* | | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-12/+5
| | | | | | | | | | | | | | | | | | | | | 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.
* | | added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-9/+30
| | | | | | | | | | | | | | | | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
* | | Merge branch 'master' into perfRainer Gerhards2008-10-061-3/+0
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | consolidated time calls during msg object creationRainer Gerhards2008-10-021-3/+0
| | | | | | | | | | | | | | | | | | ...this improves performance and consistency and also fixes a bug where subsecond time properties generated by imfile, imklog and internal messages could be slightly inconsistent.
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-2/+8
|\| | | | | | | | | | | | | | | | | Conflicts: runtime/debug.c
| * | cleaned up internal debug system code and made it behave better in regard to ↵Rainer Gerhards2008-09-261-2/+8
| | | | | | | | | | | | multi-threading
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-181-4/+3
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | bugfix: potential race condition when adding messages to queueRainer Gerhards2008-09-181-4/+3
| | | | | | | | | | | | | | | | | | | | | There was a wrong order of mutex lock operations. It is hard to believe that really caused problems, but in theory it could and with threading we often see that theory becomes practice if something is only used long enough on a fast enough machine with enough CPUs ;)
* | | minor things, mostly improved debug infoRainer Gerhards2008-09-181-5/+3
|/ /
* | consolidated time() calls in rule engineRainer Gerhards2008-09-161-3/+0
| | | | | | | | | | | | | | ... but did not manage to avoid doing at least one call. So this change introduced performance benefit only in a few non-common situations. Anyhow, it hopefully levels ground for better things to come.
* | fixing previous patch, time() call was accidently left inRainer Gerhards2008-09-161-2/+2
| | | | | | | | | | in one case, which was not on the focus of the initial testing cases.
* | performance optimization: unnecessary time() calls during message parsing ↵Rainer Gerhards2008-09-161-24/+28
| | | | | | | | | | | | removed thanks to David Lang for his excellent performance analysis
* | Merge branch 'beta'Rainer Gerhards2008-09-121-5/+10
|\| | | | | | | | | | | | | Conflicts: runtime/rsyslog.h tools/syslogd.c
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-09-121-6/+11
| | | | | | | | | | | | | | Conflicts: runtime/datetime.h runtime/rsyslog.h
* | added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-4/+19
| | | | | | | | | | | | | | | | - added message property "inputname", which contains the name of the input (module) that generated it. Presence is depending on suport in each input module (else it is blank). - added system property "$myhostname", which contains the name of the local host as it knows itself.
* | removed compile time fixed message size limit (was 2K)Rainer Gerhards2008-09-021-41/+38
| | | | | | | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))
* | Merge branch 'beta'Rainer Gerhards2008-08-131-1/+1
|\| | | | | | | | | | | Conflicts: plugins/imuxsock/imuxsock.c
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-08-131-1/+1
| | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imuxsock/imuxsock.c
* | some very minor cleanupRainer Gerhards2008-08-121-1/+0
| |
* | added testbed for config errors and fixed a bugRainer Gerhards2008-07-291-7/+13
| | | | | | | | | | | | - bugfix: no error was reported if the target of a $IncludeConfig could not be accessed. - added testbed for common config errors
* | enhanced configuration file error reporting and verificationRainer Gerhards2008-07-291-97/+174
| | | | | | | | | | | | | | | | | | | | | | | | - enhanced config file checking - no active actions are detected - added -N rsyslogd command line option for a config validation run (which does not execute actual syslogd code and does not interfere with a running instance) - somewhat improved emergency configuration. It is now also selected if the config contains no active actions - rsyslogd error messages are now reported to stderr by default. can be turned off by the new "$ErrorMessagesToStderr off" directive Thanks to HKS for suggesting these new features.
* | begun implementing a diagnostic plugin (not yet completed)Rainer Gerhards2008-07-281-0/+1
|/
* Merge branch 'v3-stable' into betaRainer Gerhards2008-07-181-5/+5
| | | | | | | Conflicts: doc/property_replacer.html tools/syslogd.c
* cleanup of debugging messages (removed no longer needed ones)Rainer Gerhards2008-07-141-6/+0
|
* temporary: some debug instrumentation to help find a segfault on freebsdRainer Gerhards2008-07-111-0/+6
|
* minor: enhanced debug output (PRI now included)Rainer Gerhards2008-07-091-1/+1
|
* bugfix: machine certificate was required for client even in TLS anon modeRainer Gerhards2008-07-021-1/+0
| | | | | | Reference: http://bugzilla.adiscon.com/show_bug.cgi?id=85 The fix also slightly improves performance by not storing certificates in client sessions when there is no need to do so.
* added (internal) error codes to error messagesRainer Gerhards2008-06-271-20/+31
| | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* fixed syntax error (typo in var name) and cleaupRainer Gerhards2008-06-101-1/+1
|