summaryrefslogtreecommitdiffstats
path: root/plugins/imklog
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add missing includeMichael Biebl2008-04-101-0/+1
| | | | | | bsd.c uses strchr, strlen and memmove, so include string.h Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* implemented klog driver for BSDRainer Gerhards2008-04-094-51/+68
|
* fixed build system for BSDRainer Gerhards2008-04-091-4/+4
| | | | | | It's a hack, but at least it works now - on BSD. Will check later if it is fine on Linux, too. Any better method of doing things is happily accepted ;)
* updated build system to detect correct klog driverRainer Gerhards2008-04-091-1/+10
|
* pulled FreeBSD's klog functionality as a baseRainer Gerhards2008-04-091-0/+151
|
* changed imklog to a driver interfaceRainer Gerhards2008-04-085-482/+599
| | | | | | 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.
* cleanup and bugfix in imklogRainer Gerhards2008-04-085-161/+87
| | | | | | | - some cleanup in imklog - bugfix: potential segfault in imklog when kernel is compiled without /proc/kallsyms and the file System.map is missing. Thanks to Andrea Morandi for pointing it out and suggesting a fix.
* bugfix: imklog did not work well with kernel 2.6+.Rainer Gerhards2008-04-083-452/+345
| | | | | | Thanks to Peter Vrabec for patching it based on the development in sysklogd - and thanks to the sysklogd project for upgrading klogd to support the new functionality.
* bugfix: imklog leaked several hundered KB on each HUP. Thanks toRainer Gerhards2008-03-194-0/+17
| | | | 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
* applied patch from Michael Biebl to clean up build systemRainer Gerhards2008-03-061-2/+2
|