rgerhards wrote:Thinking about what you describe, the additional memory may be a result from the fact that rsyslog works with real properties, whereas the syslog-ng v2 (as far as Baszi wrote) does not work on properties but only on the message string itself.
Overall, I think I understand what you mean. To sum up in a simple way, you are looking in the "big" part of the paquet while syslog-ng is looking in the "small" part ?
What I don't understand is that for syslog-ng (v2), the word used for the regex (
Alerts:, for example) is located in the
msg (at least that's where the regex is done) while in rsyslog this word is in the property
syslogtag and doesn't appear in the
msg.
the source is the same, so the difference must be coming from the syslogs.
What if I did my regex on the
msg instead ? If I can find something that corresponds to the tag in the message ? Would that improve the performances ?
Between, I tested the 4.1.4 devel, and the results are indeed better ^^(~10% gain in the 2nd used cpu).