the various parser modules that I've submitted are all removing data from the log message or overwriting the data in place.

But I've now run across a situation where I need to insert information into the message. I know that this can be done because the sanitizing call does exactly this. I am assuming that this is doing something like allocating a new string and copying the data into the new string.

the concern is how to do this in a way that will survive the exit from the module, not confuse any of the many pointers or sizes that are involved, and make sure everything is properly freed afterwords.

should I just search for the sanitizing routine and copy what it does (and can you point me at it?), or do you want me to wait until you have time to write something up on this?

David Lang
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to