summaryrefslogtreecommitdiffstats
path: root/template.c
Commit message (Collapse)AuthorAgeFilesLines
* optimized template string generationRainer Gerhards2009-06-191-51/+46
|
* fixed abort condition with oversize tagsRainer Gerhards2009-06-181-0/+1
| | | | this was a regression I introduced this afternoon
* slight optimization of template generationRainer Gerhards2009-06-181-3/+3
|
* done various optimizations to the stringbuf and its usersRainer Gerhards2009-06-161-27/+27
|
* added a new way how output plugins may be passed parameters.Rainer Gerhards2009-04-031-0/+56
| | | | | This is more efficient for some outputs. They new can receive fields not only as a single string but rather in an array where each string is seperated.
* added new "csv" property replacer optionRainer Gerhards2009-04-021-0/+5
| | | | | to enable simple creation of CSV-formatted outputs (format from RFC4180 is used)
* Merge branch 'v3-stable' into betaRainer Gerhards2008-11-111-2/+6
|\ | | | | | | | | | | | | Conflicts: ChangeLog doc/manual.html
| * enhance: regex nomatch option "ZERO" has been addedRainer Gerhards2008-11-111-2/+6
| | | | | | | | | | | | 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.
* | 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/+11
|\ | | | | | | | | | | | | Conflicts: doc/property_replacer.html tools/syslogd.c
| * added new poperty replacer option, added missing documentationRainer Gerhards2008-07-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | added (internal) error codes to error messagesRainer Gerhards2008-06-271-7/+7
| | | | | | | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* | 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
* | enhanced property replacer to support multiple regex matchesRainer Gerhards2008-06-041-4/+22
| |
* | capability for replacement text in no match regex case addedRainer Gerhards2008-05-301-2/+23
| | | | | | | | | | | | 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-4/+35
| | | | | | | | | | | | | | - 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
* | 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
* some cleanupRainer Gerhards2008-04-111-28/+20
|
* properties are now case-insensitive everywhere (script, filters, templates)Rainer Gerhards2008-04-031-2/+2
|
* bugfix: fixed small memory leak in template regular expressionsRainer Gerhards2008-03-281-4/+24
|
* prevented potential flood of error messages if regexp lib could not beRainer Gerhards2008-03-281-2/+6
| | | | loaded
* renamed library module file names to lm*, so that they match the overallRainer Gerhards2008-03-071-2/+2
| | | | 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-3/+13
|
* some cleanupRainer Gerhards2008-03-071-3/+3
|
* - extracted logerror*() family of functions from syslogd, made them theirRainer Gerhards2008-03-051-8/+23
| | | | | | own class and converted to new object calling conventions (interface-based) - converted gss-misc into a loadable library module
* changed rsCStrObj name to cstr_t, which is more inline with the rest ofRainer Gerhards2008-02-211-4/+4
| | | | rsyslog (now) and also much easier to type
* changed rsCStrDestruct() to use the new interface conventionsRainer Gerhards2008-02-201-5/+5
|
* - added doc on how expressions will workRainer Gerhards2008-02-191-7/+4
| | | | | | - cleaned up the stringbuf Construct interface - did some cleanup on stringbuf calls - we now have much better interfaces and macros
* redesigned queue to utilize helper classes for threading support. This isRainer Gerhards2008-01-241-1/+1
| | | | | | 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...
* removed some no-longer-needed code (thanks Michael Biebl for the help)Rainer Gerhards2008-01-051-4/+0
|
* changed license to GPLv3 (for what is to become rsyslog v3)Rainer Gerhards2007-12-141-1/+19
|
* fixed some type conversion warnings that appeared on 64 bit machines -Rainer Gerhards2007-12-071-1/+1
| | | | these were in debug statements, so indicated no real problem
* adding sur5r's postgres module - many thanks for providing it! There are aRainer Gerhards2007-12-031-0/+5
| | | | | number of patches necessary to core modules, because we need a new formatting function (date-pgsql).
* - changed part of the CStr interface so that better error tracking isRainer Gerhards2007-09-051-40/+38
| | | | | | | provided and the calling sequence is more intuitive (there were invalid calls based on a too-weired interface) - (hopefully) fixed some remaining bugs rooted in wrong use of the CStr class. These could lead to program abort.
* - fixed bug: a template like this causes an infinite loop: $templateRainer Gerhards2007-09-041-0/+2
| | | | | | | opts,"%programname:::a,b%" thanks varmojfekoj for the patch - fixed bug: case changing options crash freeing the string pointer because they modify it: $template opts2,"%programname::1:lowercase%" thanks varmojfekoj for the patch
* applied patch form varmojfekoj to fix some mem leaks and a check to makeRainer Gerhards2007-09-041-4/+13
| | | | | sure that an empty string (NULL) returned by the CStr class does not cause a program abort.
* patches and docu update for 1.19.3v1-19-3Michael Meckelein2007-08-311-0/+4
|
* changed rsyslog.h include order to solve debian sid zlib inlcude issueMichael Meckelein2007-08-081-1/+1
|
* changed function name dprintf() to dbgprintf() as it conflicts with theRainer Gerhards2007-08-081-49/+49
| | | | clib
* moved file write output module to own set of code filesRainer Gerhards2007-07-221-0/+211
|
* code cleanup (removed compiler warningsRainer Gerhards2007-07-181-3/+4
|
* fixed minimal memory leak on HUP (caused by templates) thanks toRainer Gerhards2007-07-181-0/+51
| | | | varmojfekoj for the patch
* moving towards autotools build system - config.h include forgotten & nowRainer Gerhards2007-07-111-0/+4
| | | | fixed
* forgotten to comment out some dprintf()s - fixed thatRainer Gerhards2007-07-051-5/+5
|
* removed some no-longer-necessary dprintf()s; worked towards more unsignedRainer Gerhards2007-07-051-28/+31
| | | | chars
* some more unsigned char conversions...Rainer Gerhards2007-07-041-1/+1
|
* applied patch from Bartosz Kuzma to compile cleanly under NetBSD; changed aRainer Gerhards2007-07-031-12/+12
| | | | number of char to unsigned char
* property replacer options space-cc and drop-cc addedRainer Gerhards2006-11-171-0/+10
|
* added '$' toPos specifierRainer Gerhards2006-10-171-0/+10
|