Rainer Gerhards
7817aa1597
bugfix: unitialized variable could cause issues under extreme conditions
...
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!)
2010-12-16 12:02:36 +01:00
Rainer Gerhards
71b8b60b22
bugfix: segfault when an *empty* template was used
...
Bug: http://bugzilla.adiscon.com/show_bug.cgi?id=206
Thanks to David Hill for alerting us.
2010-11-05 10:41:44 +01:00
Rainer Gerhards
d9e64c16e5
finshed implementation of strgen modules
...
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.
2010-06-04 12:45:31 +02:00
Rainer Gerhards
527bfcea5c
first implementation of strgen interface
...
and a first built-in strgen module. Some tweaks and more default strgens
are needed, but the code doesn't look too bad ;)
2010-06-01 18:51:55 +02:00
Rainer Gerhards
59227a8618
experimental commit: facility to generate template via C function
...
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.
2010-06-01 13:53:12 +02:00
Rainer Gerhards
4e511087c4
some cleanup
2010-04-19 15:21:25 +02:00
Rainer Gerhards
b3c8528b50
added new property replacer option "date-rfc3164-buggyday"
...
primarily to ease migration from syslog-ng. See property replacer doc
for details.
2010-03-05 07:56:57 +01:00
Rainer Gerhards
c8ebe62337
Merge branch 'v4-beta' into beta
...
Conflicts:
ChangeLog
configure.ac
doc/manual.html
plugins/imuxsock/imuxsock.c
template.c
tests/Makefile.am
tests/parsertest.sh
2010-02-10 16:35:12 +01:00
Rainer Gerhards
dd2e1a6906
fixed a small memory leak during config file parsing
2010-02-09 17:47:16 +01:00
Rainer Gerhards
d71e8672c9
Merge branch 'v4-beta' into beta
2010-02-04 16:51:43 +01:00
Rainer Gerhards
ef193bf0ae
Merge branch 'v4-stable' into v4-beta
2010-02-04 16:43:21 +01:00
varmojfekoj
8c3ab2e26f
bugfix: several smaller bugs resolved after flexelint review
...
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2010-02-04 16:02:57 +01:00
Rainer Gerhards
1541473074
some cleanup (removal of debug code)
2009-10-30 16:51:07 +01:00
Rainer Gerhards
e04e1b5002
enhanced test environment (including testbench)
...
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.
2009-10-22 11:33:38 +02:00
Rainer Gerhards
90e8475260
bugfix: message processing states were not set correctly in all cases
...
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.
2009-10-19 09:41:45 +02:00
Rainer Gerhards
ec56b763b8
bugfix in debug system and more instrumentation to find an issue
...
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.
2009-10-08 16:36:17 +02:00
Rainer Gerhards
bf8125f4e9
bugfix: minor static memory leak while reading configuration
...
This did NOT leak based on message volume. Also, did some cleanup during
the commit.
2009-07-20 12:18:20 +02:00
Rainer Gerhards
9de685929e
bugfix: message could be truncated after TAG, often when forwarding
...
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.
2009-07-09 16:32:14 +02:00
Rainer Gerhards
cafb951020
bugfix: message could be truncated after TAG, often when forwarding
...
This was a result of an internal processing error if maximum field
sizes had been specified in the property replacer.
2009-07-09 12:25:51 +02:00
Rainer Gerhards
7ea63db2f9
optimization: propert names are now internally identified by integers
2009-06-26 15:31:40 +02:00
Rainer Gerhards
464dcf2339
some more stringbuffer optimization
2009-06-25 18:44:48 +02:00
Rainer Gerhards
3abf567d2b
optimized template string generation
2009-06-19 16:07:17 +02:00
Rainer Gerhards
f33dd51c80
fixed abort condition with oversize tags
...
this was a regression I introduced this afternoon
2009-06-18 17:48:11 +02:00
Rainer Gerhards
df9012f755
slight optimization of template generation
2009-06-18 16:20:06 +02:00
Rainer Gerhards
f7579e68a6
done various optimizations to the stringbuf and its users
2009-06-16 11:36:05 +02:00
Rainer Gerhards
ec0e2c3e7d
added a new way how output plugins may be passed parameters.
...
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.
2009-04-03 12:51:02 +02:00
Rainer Gerhards
3954f2e166
added new "csv" property replacer option
...
to enable simple creation of CSV-formatted outputs (format
from RFC4180 is used)
2009-04-02 12:48:07 +02:00
Rainer Gerhards
c9078c7220
Merge branch 'v3-stable' into beta
...
Conflicts:
ChangeLog
doc/manual.html
2008-11-11 12:58:53 +01:00
Rainer Gerhards
4cfbf894fd
enhance: regex nomatch option "ZERO" has been added
...
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.
2008-11-11 12:00:11 +01:00
Zhuang Yuyao
d65470842d
added new capability to property replacer.
...
Multiple immediately successive field delimiters are treated as
a single one.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
2008-09-10 12:18:34 +02:00
Rainer Gerhards
d45a286f2d
Merge branch 'v3-stable' into beta
...
Conflicts:
doc/property_replacer.html
tools/syslogd.c
2008-07-18 14:51:49 +02:00
Rainer Gerhards
73abfd1fad
added new poperty replacer option, added missing documentation
...
- 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
2008-07-18 12:50:14 +02:00
Rainer Gerhards
3f6c73a8b7
added (internal) error codes to error messages
...
Also added redirector to web description of error codes
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
2008-06-27 12:52:45 +02:00
Rainer Gerhards
2687d0010c
added new property replacer option "time-subseconds"
...
enables to query just the subsecond part of a high-precision timestamp
2008-06-06 17:33:58 +02:00
Rainer Gerhards
eddaca33a8
enhanced property replacer to support multiple regex matches
2008-06-04 11:11:52 +02:00
Rainer Gerhards
6a815063f3
capability for replacement text in no match regex case added
...
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
2008-05-30 15:18:03 +02:00
Rainer Gerhards
99f18190a1
enhanced property replacer's regex to support submatches
...
- 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
2008-05-29 12:48:15 +02:00
Rainer Gerhards
d9b0c77d3e
some more cleanup
...
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +02:00
Rainer Gerhards
890f782323
some cleanup
2008-04-11 17:33:13 +02:00
Rainer Gerhards
5e279ea0f7
properties are now case-insensitive everywhere (script, filters, templates)
2008-04-03 09:31:55 +00:00
Rainer Gerhards
f574400bb5
bugfix: fixed small memory leak in template regular expressions
2008-03-28 13:39:32 +00:00
Rainer Gerhards
a520f022d2
prevented potential flood of error messages if regexp lib could not be
...
loaded
2008-03-28 12:58:59 +00:00
Rainer Gerhards
4db62823e7
renamed library module file names to lm*, so that they match the overall
...
scheme (like im* and om*)
2008-03-07 17:26:58 +00:00
Rainer Gerhards
d471e71ada
fixed potential infinite loop condition when module load failed on startup
2008-03-07 16:34:51 +00:00
Rainer Gerhards
549c0cccd4
extracted regexp functionality to its own dynamically loadable module
2008-03-07 16:10:58 +00:00
Rainer Gerhards
1888852c9a
some cleanup
2008-03-07 13:14:17 +00:00
Rainer Gerhards
24b02dc831
- extracted logerror*() family of functions from syslogd, made them their
...
own class and converted to new object calling conventions
(interface-based)
- converted gss-misc into a loadable library module
2008-03-05 14:53:25 +00:00
Rainer Gerhards
013073f1a6
changed rsCStrObj name to cstr_t, which is more inline with the rest of
...
rsyslog (now) and also much easier to type
2008-02-21 07:00:29 +00:00
Rainer Gerhards
c6bebca3c7
changed rsCStrDestruct() to use the new interface conventions
2008-02-20 14:02:33 +00:00
Rainer Gerhards
cd2b24dfc4
- added doc on how expressions will work
...
- cleaned up the stringbuf Construct interface
- did some cleanup on stringbuf calls - we now have much better interfaces
and macros
2008-02-19 10:30:42 +00:00