summaryrefslogtreecommitdiffstats
path: root/template.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v5-beta-strgen-bind' into v5-betaRainer Gerhards2011-03-291-2/+2
|\
| * bugfix: strgen could not be used together with database outputsRainer Gerhards2011-03-211-2/+2
| | | | | | | | | | | | because the sql/stdsql option could not be specified. This has been solved by permitting the strgen to include the opton inside its name. closes: http://bugzilla.adiscon.com/show_bug.cgi?id=195
* | bugfix: rsyslog did not build with --disable-regexp configure optionRainer Gerhards2011-03-281-3/+9
|/ | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=243
* potential fix to issue that strgen's do not support SQL optionRainer Gerhards2011-03-211-6/+23
| | | | needs testig and verification (wrong system for doing that ;))
* bugfix: unitialized variable could cause issues under extreme conditionsRainer Gerhards2010-12-161-6/+4
| | | | | | plus some minor nits. This was found after a clang static code analyzer analysis (great tool, and special thanks to Marcin for telling me about it!)
* bugfix: segfault when an *empty* template was usedRainer Gerhards2010-11-051-2/+10
| | | | | Bug: http://bugzilla.adiscon.com/show_bug.cgi?id=206 Thanks to David Hill for alerting us.
* finshed implementation of strgen modulesRainer Gerhards2010-06-041-8/+15
| | | | | | 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.
* first implementation of strgen interfaceRainer Gerhards2010-06-011-57/+13
| | | | | and a first built-in strgen module. Some tweaks and more default strgens are needed, but the code doesn't look too bad ;)
* experimental commit: facility to generate template via C functionRainer Gerhards2010-06-011-5/+97
| | | | | | | | | | | | | | This was a test done to try to generate templates with C code, via a new (potentially to-be-implemented) class of template modules. We have a rough POC inside this code, and it showed around 5% or better speedup. So it semms worth continuing in this direction. Note that this experimental commit works correct, but does any template in the form of $template tpl,=somewhat will lead to fixed template expansion based on the default file format.
* some cleanupRainer Gerhards2010-04-191-1/+0
|
* added new property replacer option "date-rfc3164-buggyday"Rainer Gerhards2010-03-051-0/+2
| | | | | primarily to ease migration from syslog-ng. See property replacer doc for details.
* Merge branch 'v4-beta' into betaRainer Gerhards2010-02-101-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html plugins/imuxsock/imuxsock.c template.c tests/Makefile.am tests/parsertest.sh
| * fixed a small memory leak during config file parsingRainer Gerhards2010-02-091-1/+4
| |
* | Merge branch 'v4-beta' into betaRainer Gerhards2010-02-041-4/+1
|\|
| * Merge branch 'v4-stable' into v4-betaRainer Gerhards2010-02-041-4/+1
| |\
| | * bugfix: several smaller bugs resolved after flexelint reviewvarmojfekoj2010-02-041-4/+1
| | | | | | | | | | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
| * | bugfix: message could be truncated after TAG, often when forwardingRainer Gerhards2009-07-091-2/+4
| | | | | | | | | | | | | | | | | | This was a result of an internal processing error if maximum field sizes had been specified in the property replacer. Also did some testbench improvements, including omstdout.
* | | some cleanup (removal of debug code)Rainer Gerhards2009-10-301-4/+0
| | |
* | | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | support for enhancing probability of memory addressing failure by using non-NULL default value for malloced memory (optional, only if requested by configure option). This helps to track down some otherwise undetected issues within the testbench and is expected to be very useful in the future.
* | | bugfix: message processing states were not set correctly in all casesRainer Gerhards2009-10-191-1/+1
| | | | | | | | | | | | | | | | | | however, this had no negative effect, as the message processing state was not evaluated when a batch was deleted, and that was the only case where the state could be wrong.
* | | bugfix in debug system and more instrumentation to find an issueRainer Gerhards2009-10-081-1/+5
| | | | | | | | | | | | | | | bugfix: debug string larger than 1K were improperly displayed. Max size is now 32K, and if a string is even longer it is meaningful truncated.
* | | bugfix: minor static memory leak while reading configurationRainer Gerhards2009-07-201-1/+4
| | | | | | | | | | | | | | | This did NOT leak based on message volume. Also, did some cleanup during the commit.
* | | bugfix: message could be truncated after TAG, often when forwardingRainer Gerhards2009-07-091-2/+4
|/ / | | | | | | | | This was a result of an internal processing error if maximum field sizes had been specified in the property replacer.
* | optimization: propert names are now internally identified by integersRainer Gerhards2009-06-261-10/+6
| |
* | some more stringbuffer optimizationRainer Gerhards2009-06-251-1/+0
| |
* | 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
|