summaryrefslogtreecommitdiffstats
path: root/plugins/imuxsock
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Merge branch 'beta'Rainer Gerhards2009-02-241-1/+1
|\ | | | | | | | | | | | | | | Conflicts: ChangeLog Makefile.am configure.ac doc/manual.html
| * 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.
* | 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.
* | added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-1/+1
|/ | | | | | | ...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)
* performance optimization: unnecessary time() calls during message parsing ↵Rainer Gerhards2008-09-161-3/+3
| | | | | | removed thanks to David Lang for his excellent performance analysis
* added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-1/+1
| | | | | | | | - 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-3/+24
| | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))
* added ability to specify flow control mode for imuxsockRainer Gerhards2008-08-081-3/+21
|
* added $InputUnixListenSocketHostName config directiveRainer Gerhards2008-08-011-11/+30
| | | | | | It permits to override the hostname being used on a local unix socket. This is useful for differentiating "hosts" running in several jails. Feature was suggested by David Darville, thanks for the suggestion.
* added (internal) error codes to error messagesRainer Gerhards2008-06-271-3/+3
| | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* Remove .cvsignore files, add .gitignore.Michael Biebl2008-06-111-6/+0
| | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-1/+2
| | | | | | | | | | - 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-2/+2
|
* completed better modularity of runtimeRainer Gerhards2008-04-171-4/+1
| | | | | | | | | | - 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 host/domain-name related variables to global data poolRainer Gerhards2008-04-171-3/+7
|
* some more cleanupRainer Gerhards2008-04-161-1/+2
| | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* made everything compile with the new runtime subdirectoryRainer Gerhards2008-04-161-1/+1
|
* some cleanupRainer Gerhards2008-04-111-1/+1
|
* added flow control options to other input sourcesRainer Gerhards2008-03-191-1/+1
|
* some cleanupRainer Gerhards2008-03-071-1/+0
|
* added capability to ignore client-provided timestamp on unix sockets andRainer Gerhards2008-03-061-3/+30
| | | | | | | | | | | made this mode the default; this was needed, as some programs (e.g. sshd) log with inconsistent timezone information, what messes up the local logs (which by default don't even contain time zone information). This seems to be consistent with what sysklogd did for the past four years. Alternate behaviour may be desirable if gateway-like processes send messages via the local log slot - in this case, it can be enabled via the $InputUnixListenSocketIgnoreMsgTimestamp and $SystemLogSocketIgnoreMsgTimestamp config directives
* applied patch from Michael Biebl to clean up build systemRainer Gerhards2008-03-061-2/+2
|
* - extracted logerror*() family of functions from syslogd, made them theirRainer Gerhards2008-03-051-2/+6
| | | | | | own class and converted to new object calling conventions (interface-based) - converted gss-misc into a loadable library module
* - changed modules.c calling conventions to be interface-basedRainer Gerhards2008-03-051-13/+0
| | | | | | | | | | | - moved module loader from conf.c to module.c, where it belongs - made the necessary plumbing to auto-load library modules - upgraded debug system to include iRet in function exit message - changed module interface so that instances need only to be supported by output plugins (if we actually need them for input plugins, we can always add it again...) - milestone: first implementation of library modules (but do not get unloaded on exit/hup so far)
* - changed module interface to support querying obj interface (stage work)Rainer Gerhards2008-03-041-1/+1
| | | | - changed module interface version, as the interface change is quite large
* - changed interface "printchopped()" so that it looks more like a genericRainer Gerhards2008-02-181-1/+1
| | | | | | | message submission interface. Part of the ongoing modularization effort. - bugfix: invalid kernel log format -- see bug http://bugzilla.adiscon.com/show_bug.cgi?id=1
* - fixed a bug that could cause invalid string handling via strerror_rRainer Gerhards2008-01-301-1/+2
| | | | | varmojfekoj provided the patch - many thanks! - adopted varmojfekoj's patch to v3, some more sterror_r's ;)
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-5/+4
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* - fixed a bug that caused a segfault on startup when no $WorkDir directivev3-10-1aRainer Gerhards2008-01-101-1/+0
| | | | | | was specified in rsyslog.conf - fixed a bug that caused a segfault on queues with types other than "disk" - removed the now longer needed thread TermSyncTool
* added --enable-mudflap ./configure optionRainer Gerhards2008-01-081-2/+2
|
* applied Michael Biebl's patch to clean up the makefilesRainer Gerhards2008-01-031-4/+2
|
* implemented $AddUnixListenSocket config directiveRainer Gerhards2007-12-201-13/+83
|
* implemented $SystemLogSocketName config directiveRainer Gerhards2007-12-201-6/+25
|
* implemented $OmitLocalLogging config directiveRainer Gerhards2007-12-201-11/+13
|
* moved unix socket code to its own module (imuxsock)Rainer Gerhards2007-12-201-14/+130
|
* begun moving unix socket code to its own moduleRainer Gerhards2007-12-203-0/+142