summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | bugfix: solved potential memory leak in msg processingRainer Gerhards2009-04-081-1/+3
|/ / / | | | | | | | | | | | | could manifest itself in imtcp (loss of a few bytes for *each* received message - but depended on config) -- this was newly introduced
* | | added new "csv" property replacer optionRainer Gerhards2009-04-021-0/+34
| | | | | | | | | | | | | | | to enable simple creation of CSV-formatted outputs (format from RFC4180 is used)
* | | Merge branch 'beta'Rainer Gerhards2009-01-301-0/+2
|\| |
| * | Merge branch 'v3-stable' into beta, conclude fix for raceRainer Gerhards2009-01-301-2/+5
| |\| | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| | * Merge branch 'debian_lenny' into v3-stableRainer Gerhards2009-01-301-12/+7
| | |
| | * bugfix: invalid mutex access in msg.cRainer Gerhards2009-01-301-2/+5
| | |
| * | bugfix: inconsistent use of mutex/atomic operations could cause segfaultRainer Gerhards2009-01-301-6/+7
| | | | | | | | | | | | | | | details are too many, for full analysis see blog post at: http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html
* | | Merge branch 'drd-testing'Rainer Gerhards2009-01-291-2/+7
|\ \ \
| * | | bugfix: unitialized mutex was used in msg.c:getPRIRainer Gerhards2009-01-261-2/+7
| | | | | | | | | | | | | | | | | | | | This was subtle, because getPRI is called as part of the debugging code (always executed) in syslogd.c:logmsg.
* | | | fixed atomic operationsRainer Gerhards2009-01-291-6/+5
|/ / /
* | | Merge branch 'beta'Rainer Gerhards2008-11-181-1/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/property_replacer.html
| * | Merge branch 'v3-stable' into betaRainer Gerhards2008-11-111-1/+9
| |\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog doc/manual.html
| | * enhance: regex nomatch option "ZERO" has been addedRainer Gerhards2008-11-111-0/+2
| | | | | | | | | | | | | | | | | | This allows to return the string 0 if a regular expression is not found. This is probably useful for storing numerical values into database columns.
| | * improved debug output for regular expressions inside property replacerRainer Gerhards2008-11-111-1/+7
| | | | | | | | | | | | | | | | | | RE's seem to be a big trouble spot and I would like to have more information inside the debug log. So I decided to add some additional debug strings permanently.
* | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-1/+0
| | | | | | | | | | | | | | | | | | 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.
* | | fixing segfault caused by all inputs but imudpRainer Gerhards2008-10-091-0/+1
| | |
* | | cleanup of output timestamp generationRainer Gerhards2008-10-071-0/+4
| | |
* | | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-6/+9
| | | | | | | | | | | | | | | | | | | | | 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-14/+58
| | | | | | | | | | | | | | | | | | | | | ...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)
* | | Merge branch 'master' into perfRainer Gerhards2008-10-061-0/+9
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | consolidated time calls during msg object creationRainer Gerhards2008-10-021-0/+9
| | | | | | | | | | | | | | | | | | ...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.
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-10-021-1/+1
|\| |
| * | bugfix: segfault when main queue was in direct modeRainer Gerhards2008-10-011-1/+1
| | |
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-5/+9
|\| | | | | | | | | | | | | | | | | Conflicts: runtime/debug.c
| * | atomic memory access calls re-enabled in msg.cRainer Gerhards2008-09-231-5/+5
| | | | | | | | | | | | | | | | | | destructor not yet permitted because verification is missing that a atomic opration is sufficient for the job required
| * | bugfix: proper synchronization on message destructionRainer Gerhards2008-09-191-0/+4
| | | | | | | | | | | | | | | The code was potentially race, at least on systems where a memory barrier was needed. Fix not fully tested yet.
* | | minor things, mostly improved debug infoRainer Gerhards2008-09-181-2/+2
|/ /
* | added properties "inputname" and "$myhostname"Rainer Gerhards2008-09-101-0/+37
| | | | | | | | | | | | | | | | - 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 capability to property replacer.Zhuang Yuyao2008-09-101-0/+5
|/ | | | | | | Multiple immediately successive field delimiters are treated as a single one. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* Merge branch 'v3-stable' into betaRainer Gerhards2008-07-181-0/+26
| | | | | | | Conflicts: doc/property_replacer.html tools/syslogd.c
* 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.
* Merge branch 'beta' - important mutex bugfixRainer Gerhards2008-07-141-2/+29
| | | | | | | | | Conflicts: ChangeLog configure.ac doc/Makefile.am doc/manual.html
* reduced number of compile warnings in -pedantic gcc modeRainer Gerhards2008-06-271-1/+0
|
* fixed a bug with the new property replacer optionRainer Gerhards2008-06-071-1/+1
| | | | | there was a copy&paste error in the timereported property - thanks to Elizabeth for reporting it
* added new property replacer option "time-subseconds"Rainer Gerhards2008-06-061-0/+26
| | | | enables to query just the subsecond part of a high-precision timestamp
* enhanced property replacer to support multiple regex matchesRainer Gerhards2008-06-041-5/+28
|
* capability for replacement text in no match regex case addedRainer Gerhards2008-05-301-13/+18
| | | | | | implemented in property replacer: if a regular expression does not match, it can now either return "**NO MATCH** (default, as before), a blank property or the full original property text
* enhanced property replacer's regex to support submatchesRainer Gerhards2008-05-291-7/+21
| | | | | | | - enabled Posix ERE expressions inside the property replacer (previously BRE was permitted only) - provided ability to specify that a regular expression submatch shall be used inside the property replacer
* added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-2/+39
| | | | | | | | | | - 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
* completed better modularity of runtimeRainer Gerhards2008-04-171-1/+0
| | | | | | | | | | - 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.
* removed no longer needed thingsRainer Gerhards2008-04-161-11/+0
| | | | | ... and some more cleanup. Also moved a file that I forgot (thanks to Michael Biebl for pointing that out).
* some more cleanupRainer Gerhards2008-04-161-1/+1
| | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* moved files to the runtimeRainer Gerhards2008-04-161-0/+2294
there are still some files left which could go into the runtime, but I think we will delete most of them once we are done with the full modularization.