summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
Commit message (Collapse)AuthorAgeFilesLines
* Handle $!all-json in field templatesMiloslav Trmač2012-08-281-0/+8
| | | | | | | | | | | Let msg.c handle appending fields, which also allows it to append more than one field per replaced property. The result allows supplementing CEE data with other (non-constant) properties, but will currently result in duplicates if $!all-json and the template contain fields with the same names. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* add uuid property to message objectJérôme Renard2012-08-261-1/+1
|
* added "date-unixtimestamp" property replacer option to format as a unix ↵Rainer Gerhards2012-03-291-0/+2
| | | | timestamp
* added message property parsesuccess to indicate status of higher level ↵Rainer Gerhards2012-03-151-0/+2
| | | | | | | | parser run added message property parsesuccess to indicate if the last run higher-level parser could successfully parse the message or not (see property replacer html doc for details)
* milestone/[PARTWORK]: integrated all variable types (msg/sys/cee)Rainer Gerhards2011-07-081-0/+1
|
* milestone/[PARTWORK]: obtaining msg vars integrated, "==" works for stringsRainer Gerhards2011-07-071-0/+1
|
* Merge branch 'v5-beta'Rainer Gerhards2011-02-251-1/+2
|\ | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * added debug support for trying to find well-hidden bugRainer Gerhards2011-02-231-1/+2
| |
* | milestone: added support for CEE-variables to RainerScriptRainer Gerhards2010-12-031-0/+2
| |
* | milestone: added support for CEE-properties in property-based filtersRainer Gerhards2010-12-011-1/+2
| |
* | milestone: template supports CEE output via %$!all-json%Rainer Gerhards2010-12-011-1/+1
| |
* | milestone: added mmnormalize (compiles, but untested)Rainer Gerhards2010-12-011-0/+3
|/
* 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 ;)).