summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
Commit message (Collapse)AuthorAgeFilesLines
* added debug support for trying to find well-hidden bugRainer Gerhards2011-02-231-1/+2
|
* bugfix: atomic increment for msg object may not work correct on all platforms.Chris Metcalf2010-11-251-1/+1
| | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* finshed implementation of strgen modulesRainer Gerhards2010-06-041-2/+5
| | | | | | and also provided four build-in modules for the most common use cases, hopefully resulting in a speedup of around 5% for typical rsyslog processing.
* Merge branch 'v4-devel' into masterRainer Gerhards2010-04-271-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: runtime/Makefile.am runtime/atomic.h runtime/queue.c runtime/queue.h runtime/wti.c runtime/wti.h runtime/wtp.c runtime/wtp.h
| * bugfix: problems with atomic operations emulationRainer Gerhards2010-04-271-0/+1
| | | | | | | | | | | | replaced atomic operation emulation with new code. The previous code seemed to have some issue and also limited concurrency severely. The whole atomic operation emulation has been rewritten.
| * changed flag value for v5-compatibilityRainer Gerhards2010-04-191-1/+1
| |
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-191-0/+1
|\| | | | | | | | | Conflicts: runtime/msg.h
| * changed imsolaris to use submitMsg() APIRainer Gerhards2010-04-191-0/+1
| | | | | | | | | | This includes a modification to the rsyslog engine so that messages without PRI inside the message can properly be handled.
* | replaced data type "bool" by "sbool" because this created some portability ↵Rainer Gerhards2010-02-021-5/+5
| | | | | | | | issues
* | moved DNS resolution code out of imudp and into the backend processingRainer Gerhards2009-11-171-7/+8
| | | | | | | | | | | | | | | | Most importantly, DNS resolution now never happens if the resolved name is not required. Note that this applies to imudp - for the other inputs, DNS resolution almost comes for free, so we do not do it there. However, the new method has been implemented in a generic way and as such may also be used by other modules in the future.
* | added the capability to have ruleset-specific main message queuesRainer Gerhards2009-10-271-0/+10
| | | | | | | | | | This offers considerable additional flexibility AND superior performance (in cases where multiple inputs now can avoid lock contention)
* | removed no longer needed msg_t property "bParseHOSTNAME"Rainer Gerhards2009-10-131-1/+0
| |
* | Merge branch 'beta'Rainer Gerhards2009-08-271-0/+17
|\|
| * bugfix: message sanitation had some issuesRainer Gerhards2009-08-261-0/+17
| | | | | | | | | | | | | | | | - control character DEL was not properly escaped - NUL and LF characters were not properly stripped if no control character replacement was to be done - NUL characters in the message body were silently dropped (this was a regeression introduced by some of the recent optimizations)
* | Merge branch 'master' into udpspoof & cleanup & slight optimizationRainer Gerhards2009-07-091-3/+3
|\| | | | | | | | | | | | | | | | | Conflicts: runtime/msg.c I messed up and did some changes during the merge commit ;) But these are not large, just a little bit of cleanup and some very slight optimizations inside the msg object.
| * small performance improvement and cleanupRainer Gerhards2009-07-091-2/+2
|/ | | | | | optimized substring processing, should bring a small enhancement when forwarding with the default forwarding templates. Also did some uchar cleanup in msg.c (thus so many changes, in reality they are few...).
* now put the new property-based methods to good useRainer Gerhards2009-07-011-2/+2
| | | | | | ... 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-3/+3
| | | | | | 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-3/+4
| | | | | | | | | | | ... 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-5/+1
| | | | | ... 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-3/+8
| | | | | | | | | | | | | 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-1/+4
|
* got rid of the recursive requirement for msg_t mutex (finally!)Rainer Gerhards2009-06-261-4/+4
|
* optimized TAG handlingRainer Gerhards2009-06-231-1/+1
|
* optimized hostname processingRainer Gerhards2009-06-231-3/+2
|
* more strict parsing of the hostname in rfc3164 modeRainer Gerhards2009-06-231-1/+1
| | | | | | | | | | | ... 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-4/+1
|
* some more optimizationsRainer Gerhards2009-06-231-0/+5
| | | | | | | - 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-1/+0
|
* some more optimizations of the msg_t object (minor)Rainer Gerhards2009-06-221-21/+20
|
* fixed abort condition with oversize tagsRainer Gerhards2009-06-181-1/+0
| | | | this was a regression I introduced this afternoon
* optimized handling of MSG part in msg objectRainer Gerhards2009-06-181-2/+3
| | | | | WARNING: currently, message repeation processing is disabled, must be reenabled (but prefer to do some other tests first)
* slight optimization of template generationRainer Gerhards2009-06-181-1/+1
|
* optimized TAG handling in msg objectRainer Gerhards2009-06-181-2/+6
|
* cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-1/+6
|
* some more optimization in msg object string handlingRainer Gerhards2009-06-171-12/+9
|
* further optimized message objectRainer Gerhards2009-06-171-16/+2
| | | | pri, facility and severity string generation simplified
* Merge branch 'master' into omfileRainer Gerhards2009-06-161-30/+24
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.h tcps_sess.c tcpsrv.c tools/syslogd.c
| * removed long-obsoleted property UxTradMsgRainer Gerhards2009-06-161-4/+5
| | | | | | | | | | ... as well as some cleanup (some commented-out code is left to support UxTradMsg again is someone really complains ;)).
| * done various optimizations to the stringbuf and its usersRainer Gerhards2009-06-161-2/+2
| |
| * some performance optimizationsRainer Gerhards2009-06-161-27/+21
| | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | completed multi-ruleset core supportRainer Gerhards2009-06-121-0/+2
|/ | | | ... as well as added multi-ruleset support for imtcp
* added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-4/+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: unitialized mutex was used in msg.c:getPRIRainer Gerhards2009-01-261-0/+1
| | | | | This was subtle, because getPRI is called as part of the debugging code (always executed) in syslogd.c:logmsg.
* moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-1/+12
| | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* reordered imudp processing.Rainer Gerhards2008-10-081-3/+4
| | | | | | 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.
* "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-1/+8
| | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-2/+2
| | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
* added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-1/+4
| | | | | | | | - 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.
* added new property replacer option "time-subseconds"Rainer Gerhards2008-06-061-0/+2
| | | | enables to query just the subsecond part of a high-precision timestamp