On Mon, 31 May 2010, Rainer Gerhards wrote: >> I agree that doing it in the output would be far better in many ways, >> but >> since there isn't a way to do a plugin there (at least not as far as I >> know, it would be good to get confirmation or a better idea) > > David, can you tell me what you have on your mind for this functionality? I > have thought a bit about it, and I probably have one approach myself. But I > would prefer to hear your idea before I push you into a direction.
two options 1. something that would work similar to the existing format string, but would call a C subroutine that could read the existing properties and would create the output string in a buffer 2. something that could also modify the exisitng properties (more powerful, but also more dangerous and could involve locking to prevent other things from trying to read properties at the same time) we haven't gone too far down the road of researching the output performance (since the input and queue locking has dominated so far), but it is clear that the output currently takes significantly more CPU time than input, it may be that being able to use C to define the output format instead of interpreting the format string may be a noticable improvement. Is there a relativly easy way to test this? (say, hard-code a format or two and test writes to file and network with the hard-coded format vs a format string that produces the same output?) David Lang _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

