summaryrefslogtreecommitdiffstats
path: root/plugins/imklog
Commit message (Collapse)AuthorAgeFilesLines
* added $klogConsoleLogLevel directiveRainer Gerhards2009-07-032-9/+7
| | | | ...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-292-4/+5
| | | | | | | | | | | | | 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-294-5/+25
|
* 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.
* update project status & cleanupRainer Gerhards2009-04-172-22/+24
| | | | | | removed some warning in imklog compilation, but may not have solved a lurking issue (but placed comment so that we know if something surfaces)
* added O_CLOEXEC to open() callsRainer Gerhards2009-04-021-1/+1
| | | | | | | | to make sure only the minimum number of file handles is left open during a exec call. This is not a 100% solution, as there are also some fopen() calls and, more importantly, file descriptors opened by libraries. But it is better than nothing (and it was quick, at least until we run into platform hell, what we will for sure ;)).
* 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.
* bugfix: imklog did not compile on freeBSDRainer Gerhards2008-11-243-3/+15
|
* 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.
* removed compile time fixed message size limit (was 2K)Rainer Gerhards2008-09-021-8/+29
| | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))
* Merge branch 'v3-stable' into betaRainer Gerhards2008-07-251-1/+1
|\ | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * Update man pages, fix a small typoMichael Biebl2008-07-211-1/+1
| | | | | | | | | | | | | | - Update the version number and date in the man pages - s/imklogd/imklog/ Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | 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-122-3/+2
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imklog/linux.c
| * changed default for i$KlogSymbolLookup to "off"Rainer Gerhards2008-06-122-3/+2
| |
* | Remove .cvsignore files, add .gitignore.Michael Biebl2008-06-111-6/+0
| | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | 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
* | Merge branch 'beta'Rainer Gerhards2008-05-023-5/+3
|\| | | | | | | | | | | | | | | | | | | Conflicts: plugins/imklog/linux.c runtime/cfsysline.c runtime/ctok.c runtime/linkedlist.c runtime/sysvar.c
| * restored debug outputRainer Gerhards2008-05-022-17/+17
| |
| * bugfix: segfault in imklogRainer Gerhards2008-04-301-1/+0
| | | | | | | | | | A symbol file was closed when it couldn't opened. That lead to a NULL pointer being passed to fclose()
| * uncommented dbgprintf's as I think these may be the trouble sourceRainer Gerhards2008-04-293-22/+21
| | | | | | | | this callback is somewhat unportable in combination with dlopen()
| * perparing for klog debugRainer Gerhards2008-04-282-33/+32
| | | | | | | | ... and some cleanup
* | preparation for bughuntRainer Gerhards2008-04-282-33/+32
| | | | | | | | including some cleanups
* | completed better modularity of runtimeRainer Gerhards2008-04-171-6/+2
| | | | | | | | | | | | | | | | | | | | - 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-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-163-3/+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
|/
* final work for release of v3.17.1v3.17.1Rainer Gerhards2008-04-151-1/+1
|
* fix compiler warning on char/ucharRainer Gerhards2008-04-141-3/+3
|
* cleanup of imklog + addtl. config directivesRainer Gerhards2008-04-146-83/+108
| | | | | | - 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-142-37/+60
| | | | | | | 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.
* removed trailing whitespaceRainer Gerhards2008-04-101-1/+1
|
* Add ENABLE_IMKLOG_LINUXMichael Biebl2008-04-101-2/+3
| | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>