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
Rainer Gerhards
5c686c8adc
redesigned queue to utilize helper classes for threading support. This is
...
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...
2008-01-24 17:55:09 +00:00
Rainer Gerhards
e5a6c66766
removed some no-longer-needed code (thanks Michael Biebl for the help)
2008-01-05 16:36:53 +00:00
Rainer Gerhards
004229dda6
changed license to GPLv3 (for what is to become rsyslog v3)
2007-12-14 11:21:57 +00:00
Rainer Gerhards
c67fe91bed
fixed some type conversion warnings that appeared on 64 bit machines -
...
these were in debug statements, so indicated no real problem
2007-12-07 13:27:52 +00:00
Rainer Gerhards
83b91cb894
adding sur5r's postgres module - many thanks for providing it! There are a
...
number of patches necessary to core modules, because we need a new
formatting function (date-pgsql).
2007-12-03 11:06:46 +00:00
Rainer Gerhards
82aeadce54
- changed part of the CStr interface so that better error tracking is
...
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.
2007-09-05 15:59:47 +00:00
Rainer Gerhards
a92017cfc7
- fixed bug: a template like this causes an infinite loop: $template
...
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
2007-09-04 15:32:00 +00:00
Rainer Gerhards
79a68894b4
applied patch form varmojfekoj to fix some mem leaks and a check to make
...
sure that an empty string (NULL) returned by the CStr class does not
cause a program abort.
2007-09-04 13:20:07 +00:00
Michael Meckelein
262111689f
patches and docu update for 1.19.3
2007-08-31 12:47:35 +00:00
Michael Meckelein
f2511d3c61
changed rsyslog.h include order to solve debian sid zlib inlcude issue
2007-08-08 10:49:38 +00:00
Rainer Gerhards
fed254a29f
changed function name dprintf() to dbgprintf() as it conflicts with the
...
clib
2007-08-08 08:20:06 +00:00
Rainer Gerhards
6b24fa20d4
moved file write output module to own set of code files
2007-07-22 16:03:45 +00:00
Rainer Gerhards
4a963e5f1f
code cleanup (removed compiler warnings
2007-07-18 15:16:15 +00:00
Rainer Gerhards
48c0c81132
fixed minimal memory leak on HUP (caused by templates) thanks to
...
varmojfekoj for the patch
2007-07-18 10:49:27 +00:00
Rainer Gerhards
3f08e1f726
moving towards autotools build system - config.h include forgotten & now
...
fixed
2007-07-11 10:53:58 +00:00
Rainer Gerhards
ec2e363e5c
forgotten to comment out some dprintf()s - fixed that
2007-07-05 07:42:03 +00:00
Rainer Gerhards
248907a7c3
removed some no-longer-necessary dprintf()s; worked towards more unsigned
...
chars
2007-07-05 06:29:57 +00:00
Rainer Gerhards
456c701f8c
some more unsigned char conversions...
2007-07-04 09:41:42 +00:00