summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/imklog.c
Commit message (Collapse)AuthorAgeFilesLines
* added $klogConsoleLogLevel directiveRainer Gerhards2009-07-031-1/+2
| | | | ...which permits to set a new console log level while rsyslog is active
* now put the new property-based methods to good useRainer Gerhards2009-07-011-4/+6
| | | | | | ... hopefully reducing the number of allocs/frees as well as overall memory usage in a busy system (plus that these shared properties hopefully remain in cache longer than its single-instance counterparts...)
* RcvFromIP now also a propertyRainer Gerhards2009-07-011-1/+1
| | | | | | This sets stage to enable use of the property-interface to speed up things (mildly), the next step to be done. I have also fixed one regression of yesterday's changes.
* introduced a new way of handling the RcvFrom propertyRainer Gerhards2009-06-301-1/+1
| | | | | | | | | | | ... plus a fix for a long-time bug in obj-types.h. That lead to the object pointer only then to become NULL when the object was actually destructed, I discovered this issue during introduction of the pRcvFrom property in msg_t, but it potentially had other effects, too. I am not sure if some experienced instability resulted from this bug OR if its fix will cause harm to so-far "correctly" running code. The later may very well be. Thus I will change it only for the current branch and also the beta, but not in all old builds. Let's see how things evolve.
* finished transition to using inputName propertyRainer Gerhards2009-06-301-2/+17
| | | | | ... plus some celanup and adding minor missing functionality (the rule debug info again tell the property name, not just number).
* introduced the idea of detached propertiesRainer Gerhards2009-06-291-1/+1
| | | | | | | | | | | | | some things inside the message can be used over a large number of messages and need to to be allocated and re-written every time. I now begin to implement this as a "prop_t" object, first use for the inputName. Some input modules are already converted, some others to go. Will do a little performance check on the new method before I go further. Also, this commit has some cleanup and a few bug fixes that prevented compiliation in debug mode (I overlooked this as I did not compile for debug, what I normally do, and the automatted test also does not do that)
* add support for KLogPathMichael Terry2009-06-291-0/+9
|
* optimized hostname processingRainer Gerhards2009-06-231-1/+1
|
* optimized handling of MSG part in msg objectRainer Gerhards2009-06-181-1/+1
| | | | | WARNING: currently, message repeation processing is disabled, must be reenabled (but prefer to do some other tests first)
* optimized TAG handling in msg objectRainer Gerhards2009-06-181-1/+1
|
* cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-1/+1
|
* removed long-obsoleted property UxTradMsgRainer Gerhards2009-06-161-2/+0
| | | | | ... as well as some cleanup (some commented-out code is left to support UxTradMsg again is someone really complains ;)).
* some performance optimizationsRainer Gerhards2009-06-161-1/+1
| | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-3/+4
| | | | | | | | | | | Well, actually this and a lot of related things. I improved the testbench so that the new capabilities are automatically tested and also did some general cleanup. The current multiple tcp listener solution will probably receive some further cleanup, too, but looks quite OK so far. I also reviewed the way tcpsrv et all work, in preparation of using this code for imdiag. I need to document the findings, especially as the code is rather complicated "thanks" to the combination of plain tcp and gssapi transport modes.
* bugfix: imklog did not compile on freeBSDRainer Gerhards2008-11-241-0/+11
|
* consolidated time calls during msg object creationRainer Gerhards2008-10-021-1/+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.
* added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-0/+2
| | | | | | | | - 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.
* Merge branch 'v3-stable' into betaRainer Gerhards2008-07-181-0/+1
|\ | | | | | | | | | | | | Conflicts: doc/property_replacer.html tools/syslogd.c
| * bugfix: remove PRI part from kernel message if it is presentRainer Gerhards2008-07-181-0/+1
| |
* | Merge branch 'beta'Rainer Gerhards2008-06-121-2/+2
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imklog/linux.c
| * changed default for i$KlogSymbolLookup to "off"Rainer Gerhards2008-06-121-2/+2
| |
* | Merge branch 'beta'Rainer Gerhards2008-05-211-1/+1
|\| | | | | | | | | | | Conflicts: ChangeLog
| * bugfix: imklog went into an endless loop if a PRI value was insideRainer Gerhards2008-05-211-1/+1
| | | | | | | | | | | | a kernel log message This is an unusual case under Linux, and a frequent one under BSD
* | added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-0/+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
* | moved host/domain-name related variables to global data poolRainer Gerhards2008-04-171-1/+5
| |
* | Merge branch 'rfc3195'Rainer Gerhards2008-04-161-1/+1
|\ \
| * | more or less finished im3195Rainer Gerhards2008-04-161-1/+1
| |/ | | | | | | | | but need changes in liblogging to complete this work - does not compile yet
* / some more cleanupRainer Gerhards2008-04-161-1/+1
|/ | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* final work for release of v3.17.1v3.17.1Rainer Gerhards2008-04-151-1/+1
|
* cleanup of imklog + addtl. config directivesRainer Gerhards2008-04-141-38/+38
| | | | | | - implemented $KLogInternalMsgFacility config directive - implemented $KLogPermitNonKernelFacility config directive - modified internal interfaces
* provided ability to discard non-kernel messages present in the kernel msg bufferRainer Gerhards2008-04-141-36/+59
| | | | | | | This obviously happens on BSD (<118> markers seen). We now have the ability to allow or prevent it, with the default being not permitted. Should not at all affect other drivers, but it is implemented on a common code basis, not on the driver layer.
* implemented high precision timestamps for the kernel log.Rainer Gerhards2008-04-121-42/+35
| | | | | Thanks to Michael Biebl for pointing out that the kernel log did not have them.
* implemented klog driver for BSDRainer Gerhards2008-04-091-4/+3
|
* changed imklog to a driver interfaceRainer Gerhards2008-04-081-468/+31
| | | | | | imklog now uses os-specific drivers. The initial "set" contains the linux driver. This is a prequisite for BSD klog, which can now be implemented on that driver interface.
* bugfix: imklog leaked several hundered KB on each HUP. Thanks toRainer Gerhards2008-03-191-0/+3
| | | | varmojfekoj for the patch
* added flow control options to other input sourcesRainer Gerhards2008-03-191-1/+1
|
* some minor things in regard to portabilityRainer Gerhards2008-03-061-4/+10
|
* added capability to ignore client-provided timestamp on unix sockets andRainer Gerhards2008-03-061-1/+1
| | | | | | | | | | | 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
* - changed modules.c calling conventions to be interface-basedRainer Gerhards2008-03-051-12/+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
* some cleanupRainer Gerhards2008-02-181-16/+0
|
* - changed interface "printchopped()" so that it looks more like a genericRainer Gerhards2008-02-181-0/+3
| | | | | | | 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
* changed interface of logmsg() to make it more straightforwardRainer Gerhards2008-02-131-1/+1
|
* - renamed Msg object to usual all-lowercase object name (else we ran intoRainer Gerhards2008-01-301-1/+1
| | | | | | troubles with the framework, also it was somewhat ugly...) - fixed a memory leak in object destruction (was recently introduced by object naming, not present in any released version)
* - improved debug support a bit (assertions)Rainer Gerhards2008-01-291-3/+3
| | | | | - restructured code, moved some part out of syslogd.c to action.c, where they belong (still some more to do in that regard ;))
* - 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
* - MsgSetProperty() implementedRainer Gerhards2008-01-071-8/+2
| | | | | - defined a property class - implemented deserializer (needs some more work)
* fixed old references to rklogd - thanks to Michael Biebl for spotting them.Rainer Gerhards2008-01-031-2/+2
|
* some cleanupRainer Gerhards2007-12-271-1/+1
|
* changed termination sync typeRainer Gerhards2007-12-201-1/+1
|