summaryrefslogtreecommitdiffstats
path: root/msg.c
Commit message (Collapse)AuthorAgeFilesLines
* added new poperty replacer option, added missing documentationRainer Gerhards2008-07-181-0/+26
| | | | | | | | | | | | | | | | | | - added a new property replacer option "sp-if-no-1st-sp" to cover a problem with RFC 3164 based interpreation of tag separation. While it is a generic approach, it fixes a format problem introduced in 3.18.0, where kernel messages no longer had a space after the tag. This is done by a modifcation of the default templates. Please note that this may affect some messages where there intentionally is no space between the tag and the first character of the message content. If so, this needs to be worked around via a specific template. However, we consider this scenario to be quite remote and, even if it exists, it is not expected that it will actually cause problems with log parsers (instead, we assume the new default template behaviour may fix previous problems with log parsers due to the missing space). - doc bugfix: property replacer options secpath-replace and secpath-drop were not documented
* bugfix: priority was incorrectly calculated on FreeBSD 7Rainer Gerhards2008-07-141-6/+10
| | | | | | | because the LOG_MAKEPRI() C macro has a different meaning there (it is just a simple addition of faciltity and severity). I have changed this to use own, consistent, code for PRI calculation. [Backport from 3.19.10]
* bugfix: potential segfault in creating message mutex in non-direct queue mode.Rainer Gerhards2008-07-141-2/+29
| | | | | | | | | | rsyslogd segfaults on freeeBSD 7.0 (an potentially other platforms) if an action queue is running in any other mode than non-direct. The same problem can potentially be triggered by some main message queue settings. In any case, it will manifest during rsylog's startup. It is unlikely to happen after a successful startup (the only window of exposure may be a relatively seldom executed action running in queued mode). This has been corrected. Thank to HKS for point out the problem.
* properties are now case-insensitive everywhere (script, filters, templates)Rainer Gerhards2008-04-031-20/+20
|
* worked a bit on atomic memory operations to support problem-free threadingRainer Gerhards2008-03-311-4/+15
| | | | (only at non-intrusive places)
* - bugfix: regular expressions inside property replacer did not workRainer Gerhards2008-03-281-6/+5
| | | | properly
* bugfix: QHOUR and HHOUR properties were wrongly calculatedRainer Gerhards2008-03-261-2/+2
|
* added $HHOUR and $QHOUR system properties - can be used for half- andRainer Gerhards2008-03-251-1/+17
| | | | quarter-hour logfile rotation
* added advanced flow control for congestion cases (mode depending on messageRainer Gerhards2008-03-141-0/+19
| | | | source and its capablity to be delayed without bad side effects)
* renamed library module file names to lm*, so that they match the overallRainer Gerhards2008-03-071-1/+1
| | | | scheme (like im* and om*)
* fixed potential infinite loop condition when module load failed on startupRainer Gerhards2008-03-071-1/+1
|
* extracted regexp functionality to its own dynamically loadable moduleRainer Gerhards2008-03-071-26/+43
|
* moved date/time handling functions to their own objectRainer Gerhards2008-03-051-12/+15
|
* did some portability changes to make rsyslog compile on HP UXRainer Gerhards2008-03-051-3/+7
|
* - added "debug" command to debug environment settingsRainer Gerhards2008-02-291-1/+4
| | | | | | | | | - changed the object/interface system to use a new way of calling, giving up the numerical object ID. This was necessary as we needed more extensibility for third-party modules (which don't play at all with the previous fixed object ID). This is stage work for the object loader. Please note that I needed to change the object (de)serializer, I can't outrule that I have introduced bugs there.
* changed obj base object's calling interface to use the new obj_if_tRainer Gerhards2008-02-291-3/+3
| | | | interface structure
* - added PUSHMSGVAR operationRainer Gerhards2008-02-251-0/+47
| | | | - included expression support in filter module (and it works ;))
* simplified var object, now only supports strings and numbers as a singleRainer Gerhards2008-02-221-14/+14
| | | | type
* changed rsCStrObj name to cstr_t, which is more inline with the rest ofRainer Gerhards2008-02-211-1/+1
| | | | rsyslog (now) and also much easier to type
* changed rsCStrDestruct() to use the new interface conventionsRainer Gerhards2008-02-201-7/+6
|
* created var class out of property_tRainer Gerhards2008-02-201-1/+1
|
* - added doc on how expressions will workRainer Gerhards2008-02-191-34/+34
| | | | | | - cleaned up the stringbuf Construct interface - did some cleanup on stringbuf calls - we now have much better interfaces and macros
* - implemented simple output rate limitingRainer Gerhards2008-01-301-2/+3
| | | | | | - addded $ActionQueueDequeueSlowdown config directive - addded $MainMsgQueueDequeueSlowdown config directive - bugfix: MsgDup() did not work with new base object data structure
* - renamed Msg object to usual all-lowercase object name (else we ran intoRainer Gerhards2008-01-301-78/+68
| | | | | | troubles with the framework, also it was somewhat ugly...) - fixed a memory leak in object destruction (was recently introduced by object naming, not present in any released version)
* implemented naming for all objects (mostly as a debug aid, but you neverRainer Gerhards2008-01-291-1/+1
| | | | know what else it will be good for)
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-16/+20
| | | | | | finally in a running state for regular (non disk-assisted) queues, with a minor nit at shutdown. So I can finally commit the work again to CVS...
* worked on threadingRainer Gerhards2008-01-171-4/+9
|
* begin disk assisted queue memory queue modes (not fully implemented yet)Rainer Gerhards2008-01-141-2/+0
|
* implemented $MainMsgQueueDiscardMar and $MainMsgQueueDiscardSeverity (butRainer Gerhards2008-01-141-0/+15
| | | | serverity needs to be specified numerically for the time being)
* partial ability to read a disk queue back in (not completed, but would likeRainer Gerhards2008-01-111-0/+2
| | | | to save source for the weekend)
* support for de-serializing strm objects addedRainer Gerhards2008-01-111-1/+1
|
* changed some config parameters and some cleanupRainer Gerhards2008-01-101-1/+1
|
* - added write functions for several types to stream classRainer Gerhards2008-01-101-29/+25
| | | | - changed objSerialize methods to work directly on the stream class
* completed deserialization support in msg object (but not deserializerRainer Gerhards2008-01-081-7/+17
| | | | itself)
* - first implementation of "disk" queue mode finished. It still needs someRainer Gerhards2008-01-081-0/+13
| | | | | | | work and the deserializer needs also to be expanded, but the queue at least performs well now. - fixed a race condition that could occur when input modules were terminated
* - MsgSetProperty() implementedRainer Gerhards2008-01-071-10/+57
| | | | | - defined a property class - implemented deserializer (needs some more work)
* implemented class type registryRainer Gerhards2008-01-071-1/+1
|
* performance-tuned stringbuf classRainer Gerhards2008-01-071-1/+1
|
* worked on object header (now also contains the size)Rainer Gerhards2008-01-061-8/+5
|
* completed serializer for msg (but needs review)Rainer Gerhards2008-01-061-36/+23
|
* worked a bit on object serializationRainer Gerhards2008-01-061-13/+22
|
* added the "direct" queueing mode to queue class (no queing at all)Rainer Gerhards2008-01-051-0/+2
|
* added capability for concurrent access to the msg class. Can be dynamicallyRainer Gerhards2008-01-051-99/+256
| | | | activated. If active, locking is employed.
* changed queue object Construction/Startup interfaceRainer Gerhards2008-01-041-2/+1
|
* moved message destruction back to consumer - the consume should decide whatRainer Gerhards2008-01-041-2/+0
| | | | | to do with the object. It may pass it on to someone else. So this would have creatd some headache in the future (maybe...).
* utilized the new auto-destruction capability so that the queue can nowRainer Gerhards2008-01-041-5/+7
| | | | destruct user objects if needed
* removed serialization pointer from queue; used new base class insteadRainer Gerhards2008-01-041-0/+3
|
* - begun some work on Msg Object serializiationRainer Gerhards2008-01-041-0/+66
| | | | - created a kind of general base class
* some cleanupRainer Gerhards2007-12-271-1/+1
|
* changed license to GPLv3 (for what is to become rsyslog v3)Rainer Gerhards2007-12-141-7/+8
|