summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/imklog.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* - implemented $klogUseSyscallInterface config directiveRainer Gerhards2007-12-201-10/+19
| | | | - implemented $klogSymbolLookup config directive
* - working on a potential race condition on the new input module interface.Rainer Gerhards2007-12-201-3/+5
| | | | | | | | | | See newsgroup posting for details on the issue: http://groups.google.com/group/comp.programming.threads/msg/330b9675f17 a1ad6 I tried some mutex operations but came to the conclusion that this does not really help. So I have now switched to plain thread cancellation, which so far seems to be OK. Need more practical experience with other input modules to make a final decision. Thus I leave all code in and have just disabled the problematic code.
* - implemented afterRun input module interface functionRainer Gerhards2007-12-171-24/+30
| | | | - implemented $klogSymbolsTwice config directive
* code cleanup debugging fixed, should now go through standard debuggingRainer Gerhards2007-12-171-70/+12
| | | | facility
* limited debug outputRainer Gerhards2007-12-171-5/+3
|
* fix for compile problemRainer Gerhards2007-12-171-0/+1
|
* begun imklog, replacing klogd.c (finally we get rid of it...)Rainer Gerhards2007-12-171-0/+753