summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
Commit message (Collapse)AuthorAgeFilesLines
* correcting -q/-Q patch - was invalidRainer Gerhards2009-11-121-2/+2
| | | | | This is the correct patch. The previous one solved the segfault, but disabled the -q/Q options.
* bugfix: segfault on startup when -q or -Q option was givenRainer Gerhards2009-11-121-2/+2
| | | | | bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=157 Thanks to Jonas Nogueira for reporting this bug.
* some minor bugfixesRainer Gerhards2009-06-181-6/+7
| | | | | | | | | | | | | | | - bugfix: invalid error message issued if $inlcudeConfig was on an empty set of files (e.g. *.conf, where none such files existed) thanks to Michael Biebl for reporting this bug - bugfix: when run in foreground (but not in debug mode), a debug message ("DoDie called") was emitted at shutdown. Removed. thanks to Michael Biebl for reporting this bug - bugfix: some garbagge was emitted to stderr on shutdown. This garbage consisted of file names, which were written during startup (key point: not a pointer error) thanks to Michael Biebl for reporting this bug - bugfix: startup and shutdown message were emitted to stdout thanks to Michael Biebl for reporting this bug
* removed forgotten debug messageRainer Gerhards2009-06-151-1/+0
|
* bugfix: error messages were not emitted to stderr in forked modeRainer Gerhards2009-06-151-2/+5
| | | | stderr and stdo are now kept open across fork()
* fixed a regression of yesterday's patchRainer Gerhards2009-05-291-1/+1
| | | | | ... I know I should not have done this to a stable branch... Thankfully nothing was yet released.
* fixed copy&paste error in previous commitRainer Gerhards2009-05-291-1/+1
| | | | (testcase was only present in v4, so I did not spot the issue immediately)
* fixed problem in syslog-protocol (now RFC5424) parserRainer Gerhards2009-05-291-15/+20
| | | | ... as well as some other minor issues.
* small enhancement: config validation run now exits with code 1 if an error ↵Rainer Gerhards2009-05-281-1/+9
| | | | | | | | | | is detected. This change is considered important but small enough to apply it directly to the stable version. [But it is a border case, the change requires more code than I had hoped. Thus I have NOT tried to actually catch all cases, this is left for the current devel releases, if necessary]
* bugfix: internal messages were emitted to whatever file had fd2varmojfekoj2009-05-281-1/+1
| | | | | | ...when rsyslogd ran in forked mode (as usual!) Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* added info if atomic ops are available to rsyslogd -v outputRainer Gerhards2009-01-301-0/+5
|
* 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
* | 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>
* | some legacy options were not correctly processedvarmojfekoj2008-12-101-3/+4
| | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | 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.
* | cleaned up internal debug system code and made it behave better in regard to ↵Rainer Gerhards2008-09-261-2/+8
| | | | | | | | multi-threading
* | 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 ;)
* | 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
|
* made rsyslog tickless in the (usual and default) case that repeatedRainer Gerhards2008-06-091-9/+17
| | | | | | message reduction is turned off. More info: http://blog.gerhards.net/2008/06/coding-to-save-environment.html
* added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-6/+19
| | | | | | | | | | - bugfix: TCP input modules did incorrectly set fromhost property (always blank) - bugfix: imklog did not set fromhost property - added "fromhost-ip" property - added "RSYSLOG_DebugFormat" canned template - bugfix: hostname and fromhost were swapped when a persisted message (in queued mode) was read in
* some cleanup (gotten rid of some more plain chars)Rainer Gerhards2008-05-061-12/+12
|
* Merge branch 'klogd-bug'Rainer Gerhards2008-04-281-6/+5
|\
| * preparation for bughuntRainer Gerhards2008-04-281-6/+5
| | | | | | | | including some cleanups
* | -c option no longer must be the first optionvarmojfekoj2008-04-241-7/+0
|/ | | | | | Thanks to varmjofekoj for the patch Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* bugfix: a recent change effectively disabled error messagesRainer Gerhards2008-04-181-0/+1
|
* completed better modularity of runtimeRainer Gerhards2008-04-171-5/+18
| | | | | | | | | | - added the ability to specify an error log function for the runtime - removed dependency of core runtime on dirty.h Note that it is "better" modularity, not perfect. There is still work to do, but I think we can for the time being proceed with other things.
* moved "glblModPath" variable inside global data poolRainer Gerhards2008-04-171-1/+0
| | | | (but still as a variable, not part of glbl object)
* moved host/domain-name related variables to global data poolRainer Gerhards2008-04-171-17/+20
|
* moved "DisableDNS" variable to global data poolRainer Gerhards2008-04-171-2/+1
|