summaryrefslogtreecommitdiffstats
path: root/template.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v3-stable' into betaRainer Gerhards2008-11-111-1/+2
|\ | | | | | | | | | | | | Conflicts: ChangeLog doc/manual.html
| * enhance: regex nomatch option "ZERO" has been addedRainer Gerhards2008-11-111-1/+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.
* | added new capability to property replacer.Zhuang Yuyao2008-09-101-0/+2
|/ | | | | | | 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/+1
|\ | | | | | | | | | | | | Conflicts: doc/property_replacer.html tools/syslogd.c
| * added new poperty replacer option, added missing documentationRainer Gerhards2008-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 new property replacer option "time-subseconds"Rainer Gerhards2008-06-061-1/+2
| | | | | | | | enables to query just the subsecond part of a high-precision timestamp
* | enhanced property replacer to support multiple regex matchesRainer Gerhards2008-06-041-0/+1
| |
* | capability for replacement text in no match regex case addedRainer Gerhards2008-05-301-0/+5
| | | | | | | | | | | | 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-1/+7
|/ | | | | | | - 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
* Merge branch 'beta'Rainer Gerhards2008-04-151-0/+2
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/ommail.html queue.c
| * applied patch from Tiziano Müller to remove some compiler warningsRainer Gerhards2008-04-111-0/+2
| |
* | some cleanupRainer Gerhards2008-04-111-1/+1
|/
* extracted regexp functionality to its own dynamically loadable moduleRainer Gerhards2008-03-071-6/+1
|
* - added RSYSLOGD_MODDIR environment variableRainer Gerhards2008-03-071-0/+10
| | | | | - added -M rsyslogd option (allows to specify module directory location) - converted net.c into a loadable library plugin
* added some code to expr.c - not yet to be usedRainer Gerhards2008-02-131-2/+1
|
* changed license to GPLv3 (for what is to become rsyslog v3)Rainer Gerhards2007-12-141-1/+19
|
* adding sur5r's postgres module - many thanks for providing it! There are aRainer Gerhards2007-12-031-1/+1
| | | | | 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-4/+4
| | | | | | | 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.
* patches and docu update for 1.19.3v1-19-3Michael Meckelein2007-08-311-0/+2
|
* moved action object out of syslogd.c to its own fileset (action.c/h)Rainer Gerhards2007-08-061-0/+5
|
* - I found out that we finally have problems with the (somewhat recursive)Rainer Gerhards2007-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | call to logerror() that many of the modules do. I have not tried it, but I think things will become wild when we compile without pthread support. Threading prevents full recursion, so we have not seen any bad effects so far. However, the problems that I experienced in ommysl (that caused me to re-structure startWorker()) are actually rooted in this issue. I first thought to fix it via a module interace, but I now came to the conclusion that it is not more effort and much cleaner to do an internal error buffering class. This is implemented in errbuf.c/h. - I just noticed that this is not actually an error buf, but the core of an input module for all internal messages. As such, I implement it now as iminternal.c/h. Of course, there is no input module interface yet designed, but that doesn't matter. Worst-case, I need to re-write the im, best case I can use the im (at least partly) to define the interface. - added a few functions to the linkedlist class - error messages during startup are now buffered - so we do no longer need to think about how emergency logging might work. Actually, these are logged to whatever is instatiated in the log file. This enhances the chance that we will be able to drop the error message somewhere it is seen.
* moved file write output module to own set of code filesRainer Gerhards2007-07-221-0/+5
|
* moved part of the shell action to its own moduleRainer Gerhards2007-07-201-0/+4
|
* code cleanup (removed compiler warningsRainer Gerhards2007-07-181-0/+1
|
* fixed minimal memory leak on HUP (caused by templates) thanks toRainer Gerhards2007-07-181-0/+1
| | | | varmojfekoj for the patch
* some more unsigned char conversions...Rainer Gerhards2007-07-041-1/+1
|
* added support for dynamic file names in selector lines. Can now be createdRainer Gerhards2007-07-031-2/+2
| | | | with templates.
* property replacer options space-cc and drop-cc addedRainer Gerhards2006-11-171-0/+2
|
* made the field-delimiter inside property replacer (templates) configurableRainer Gerhards2006-09-271-1/+2
|
* added support for field-based text extraction in the property replacer.Rainer Gerhards2005-12-221-4/+5
| | | | This is untested so far (the evening came quicker than anticipated ;))
* fixed a problem with MySQL field escapesRainer Gerhards2005-09-231-1/+4
|
* merged Andres Riancho's regex extensions into the code (hopefullyRainer Gerhards2005-09-131-0/+10
| | | | correctly)
* memory leak fixedRainer Gerhards2005-02-221-0/+1
|
* property option drop-last-lf added; some doc in test.confRainer Gerhards2004-12-081-1/+3
|
* fixed the bug, template engine should now workRainer Gerhards2004-11-251-1/+2
|
* everything in place now to support writing to SQLRainer Gerhards2004-11-231-0/+8
|
* now includes sql option in template to escape quote chractersRainer Gerhards2004-11-231-0/+5
|
* fixing upload error - template parser also okRainer Gerhards2004-11-191-1/+3
|
* MsgObjNearlyCompletedRainer Gerhards2004-11-181-2/+8
|
* ComingCloserRainer Gerhards2004-11-171-1/+18
|
* begin templatesRainer Gerhards2004-11-171-0/+15