summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix Large File Support (LFS) support (bug #182)Yann Droneaud2010-03-041-9/+0
| | | | | | | | | - _FILE_OFFSET_BITS must be defined before including any other system headers otherwise it does nothing. - Don't define it in rsyslog.h, let it be defined in config.h, and let ./configure script enable LFS since Autoconf provides a portable macro to enable LFS support : AC_SYS_LARGEFILE
* message parser fixes and testbench enhancementsRainer Gerhards2010-02-221-1/+1
| | | | | | | | | - improved testbench to contain samples for totally malformed messages which miss parts of the message content - bugfix: some malformed messages could lead to a missing LF inside files or some other missing parts of the template content. - bugfix: if a message ended immediately with a hostname, the hostname was mistakenly interpreted as TAG, and localhost be used as hostname
* Merge branch 'aaron' into v4-betaRainer Gerhards2009-10-021-0/+1
|\ | | | | | | | | Conflicts: runtime/rsyslog.h
| * bumped version number, corrected error message code (minor nit)Rainer Gerhards2009-10-011-0/+1
| |
* | Merge branch 'v4-stable' into v4-beta & BUGFIXRainer Gerhards2009-10-011-0/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html runtime/datetime.h runtime/parser.c runtime/rsyslog.h tools/syslogd.c v4-stable had a bug with RFC5424-formatted structured data, which showed was detected by the enhanced automatted testbench of v4-beta.
| * bugfix: random data could be appended to message, possibly causing segfaultsRainer Gerhards2009-09-241-0/+1
| |
* | introduced the idea of detached propertiesRainer Gerhards2009-06-291-0/+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)
* | optimization: propert names are now internally identified by integersRainer Gerhards2009-06-261-0/+41
| |
* | got rid of the recursive requirement for msg_t mutex (finally!)Rainer Gerhards2009-06-261-3/+2
| |
* | optimized TAG handlingRainer Gerhards2009-06-231-2/+4
| |
* | more strict parsing of the hostname in rfc3164 modeRainer Gerhards2009-06-231-4/+8
| | | | | | | | | | | | | | | | | | | | | | ... hopefully removes false positives (but may cause some trouble with hostname parsing). For details, see this bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=126 This patch is not optimal for v4 - another one will follow. The spirit of this commit is to enable easier backporting if someone is interested in doing so.
* | restored repeated message reduction processingRainer Gerhards2009-06-231-0/+3
| |
* | some more optimizationsRainer Gerhards2009-06-231-0/+1
| | | | | | | | | | | | | | - done malloc() instead of calloc() for msg_t, as we have large space which needs not be initialized - shrunk syslogTime structure in the hope to get better cache and write performance (non-aligned data should not hurt much here)
* | optimized processing of TAG message fieldRainer Gerhards2009-06-221-0/+1
| |
* | added basic plumbing to support message properties separate from messageRainer Gerhards2009-06-161-0/+1
| | | | | | | | | | will fill this with live somewhat later, noticed I need to do some stage work first (at least this is useful).
* | milestone: input-side multiSubmit capabilityRainer Gerhards2009-06-161-0/+13
| | | | | | | | ... commit before I try to touch the queue side ;)
* | minor cleanupRainer Gerhards2009-06-161-1/+0
| |
* | Merge branch 'master' into omfileRainer Gerhards2009-06-161-0/+2
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.h tcps_sess.c tcpsrv.c tools/syslogd.c
| * some performance optimizationsRainer Gerhards2009-06-161-0/+2
| | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | implemented $OMFileFlushOnTXEnd directiveRainer Gerhards2009-06-121-8/+0
| | | | | | | | plus some cleanup...
* | re-enabled pipe, tty and console in omfileRainer Gerhards2009-06-121-0/+13
| | | | | | | | | | | | | | ... by moving code to stream.c. Thanks to the new design, new cases are not really needed, resulting in cleaner code. I also did a cleanup of header file usage as a side-activity.
* | re-enabled outchannel functionalityRainer Gerhards2009-06-121-0/+3
| |
* | restructered code in perparation for multiple rule set supportRainer Gerhards2009-06-101-1/+18
| | | | | | | | | | | | | | ... this was long overdue, and I finlly tackeld it. It turned out to be more complex than I initially thought. The next step now probably is to actually implement multiple rule sets and the beauty that comes with them.
* | Merge branch 'master' into omfileRainer Gerhards2009-06-041-1/+4
|\|
| * backported some of the v5 testbenchRainer Gerhards2009-06-041-1/+4
| | | | | | | | | | | | | | | | this permits us to keep a persistent test environment between v4 and v5, most importantly using the same tools. As far as the actual tests are concerned, some had issues. I had no time to check if that was an issue with the test or an actual issue with the v3/4 engine. Will do that at some later stage.
* | first proof of concept on zipped file writerRainer Gerhards2009-06-031-0/+1
|/ | | | | | This DOES NOT work sufficiently well, I just wanted to verify that zip writing is possible and files are readable. Will be refined soon.
* added a generic network stream serverRainer Gerhards2009-06-021-0/+3
| | | | (in addition to rather specific syslog tcp server)
* Merge branch 'beta'Rainer Gerhards2009-05-291-0/+1
|\ | | | | | | | | Conflicts: runtime/rsyslog.h
| * Merge branch 'v3-stable' into betaRainer Gerhards2009-05-291-0/+1
| |\ | | | | | | | | | | | | Conflicts: runtime/rsyslog.h
| | * fixed a regression of yesterday's patchRainer Gerhards2009-05-291-0/+1
| | | | | | | | | | | | | | | ... I know I should not have done this to a stable branch... Thankfully nothing was yet released.
* | | added new testing module imdiagRainer Gerhards2009-05-251-0/+1
| | | | | | | | | | | | | | | which enables to talk to the rsyslog core at runtime. The current implementation is only a beginning, but can be expanded over time
* | | added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | added capability to draw configuration graphsRainer Gerhards2009-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | - added $GenerateConfigGraph configuration command which can be used to generate nice-looking (and very informative) rsyslog configuration graphs. - added $ActionName configuration directive (currently only used for graph generation, but may find other uses)
* | | Merge branch 'nextmaster' into oracleRainer Gerhards2009-04-161-0/+4
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: runtime/rsyslog.h
| * \ \ Merge branch 'omprog' into nextmasterRainer Gerhards2009-04-141-0/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/rsyslog.h
| | * | | improved omprog, now ready for first practical testingRainer Gerhards2009-04-011-0/+1
| | | | |
| | * | | initial work on omprog, an output module to send messages to another programRainer Gerhards2009-04-011-0/+2
| | | | |
| * | | | implemented $MaxOpenFiles directive and changed testbenchRainer Gerhards2009-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | ... to utilize it. This work is not yet fully verified to be correct.
* | | | | added a new error code for too-old rsyslog coreRainer Gerhards2009-04-161-0/+1
|/ / / / | | | | | | | | | | | | | | | | which can be emittend when plugin can not load due to missing core functionality.
* | / / improved internal handling of RainerScript functionsRainer Gerhards2009-04-061-0/+4
| |/ / |/| | | | | | | | | | | | | | | | | - building the necessary plumbing to support more functions with decent runtime performance. This is also necessary towards the long-term goal of loadable library modules. - added new RainerScript function "tolower"
* | | clean compile on solarisRainer Gerhards2009-04-021-0/+5
|/ /
* | initial implementation of RainerScript functions & strlen()Rainer Gerhards2009-03-101-0/+4
| | | | | | | | | | | | | | | | | | | | - implemented function support in RainerScript. That means the engine parses and compile functions, as well as executes a few build-in ones. Dynamic loading and registration of functions is not yet supported - but we now have a good foundation to do that later on. NOTE: nested function calls are not yet supported due to a design issue with the function call VM instruction set design. - implemented the strlen() RainerScript function
* | Merge branch 'beta'Rainer Gerhards2008-12-041-0/+1
|\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/rsyslog_conf.html plugins/imudp/imudp.c runtime/rsyslog.h
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-11-291-0/+1
| |\ | | | | | | | | | | | | Conflicts: runtime/rsyslog.h
| | * security bugfix: $AllowedSender was not honored,Rainer Gerhards2008-11-291-0/+1
| | | | | | | | | | | | ...all senders were permitted instead
* | | reordered imudp processing.Rainer Gerhards2008-10-081-0/+1
|/ / | | | | | | | | | | Message parsing is now done as part of main message queue worker processing (was part of the input thread) This should also improve performance, as potentially more work is done in parallel.
* | performance optimization: unnecessary time() calls during message parsing ↵Rainer Gerhards2008-09-161-0/+1
| | | | | | | | | | | | removed thanks to David Lang for his excellent performance analysis
* | Merge branch 'beta'Rainer Gerhards2008-09-121-2/+2
|\| | | | | | | | | | | | | Conflicts: runtime/rsyslog.h tools/syslogd.c
| * fixed duplicate error numberRainer Gerhards2008-09-121-1/+1
| | | | | | | | | | This probably happened during a branch merge and was not detected. Fixed now, should not haved any harm.
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-09-121-1/+1
| | | | | | | | | | | | | | Conflicts: runtime/datetime.h runtime/rsyslog.h