I very much appreciate that you are freely sharing this repository and its evident that you've invested a bit of time and effort. I thought it might be helpful to document why you do are filtering messages like this in order to help people better decide if they should utilize your project. In the end, I hope this will help you gain more users instead of people re-inventing the wheel.
Please don't take this as a criticism or me advocating to change how you do things; this is merely a request to document what you feel are the advantages to your methodology.
For example, why bother listing each program separately? Why not just use $PROGRAM in the destination path?
destination files_known {
file("/var/log/$YEAR.$MONTH.$DAY/$HOST/$PROGRAM");
};
If you are going to list program, why not have one big filter for "known" programs
filter known_program {
program("cron") or [...]
}
source foo { [...] }
destination files_known {
file("/var/log/$YEAR.$MONTH.$DAY/$HOST/$PROGRAM");
}
destination files_unknown {
file("/var/log/$YEAR.$MONTH.$DAY/$HOST/unknown-$FACILITY");
}
log {
source(foo);
filter(known_program);
rewrite(rewrite_program);
destination(files_known);
flags(final);
};
log {
source(foo);
destination(files_unknown);
};
I very much appreciate that you are freely sharing this repository and its evident that you've invested a bit of time and effort. I thought it might be helpful to document why you do are filtering messages like this in order to help people better decide if they should utilize your project. In the end, I hope this will help you gain more users instead of people re-inventing the wheel.
Please don't take this as a criticism or me advocating to change how you do things; this is merely a request to document what you feel are the advantages to your methodology.
For example, why bother listing each program separately? Why not just use $PROGRAM in the destination path?
If you are going to list program, why not have one big filter for "known" programs