On Tue, 1 Feb 2011, martin f krafft wrote:

also sprach [email protected] <[email protected]> [2011.02.01.1957 +0100]:
rsyslog already has the include directive to include files (or all
files in a directory)

does this work for you? if not, what does it lack?

I am aware of the include directive. It has nothing to do with what
I am trying to do.

I am trying to tell rsyslog: "hey, all files that you write, append
the following suffix to their names!", or "hey, all files that you
write, run their names through this filter and use the output as
actual filename!".

I want this because it's a cleaner way to replace all hard-coded
filenames with templated filenames, than to change every instance of
a hard-coded filename.

Am I making myself clearer now?

a little bit, but rsyslog does not have any hard-coded filenames.

your distro may have something like this, but Ubuntu already does all output directives through include files, so why not just replace those include files?

the problem with just running all filenames through a filter is that you also want to change normal, fixed filenames to dynamic filenames. this requires that the filename be evaluated for each log message as opposed to just at open time. There is a significant performance hit to doing this, one that people who don't use synamid filenames will not want to pay.

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

Reply via email to