I've been searching on the internet for answers relating to syslog-ng and how I can configure syslog-ng to save incoming log files with a specific suffix to a file and also carry over the suffix variable.
destination d_logs {
file("/var/log/app-${host}.log", owner("root"), group("root"), perm(0640));
}
In the configuration above, I would like to be able to extract the suffix and carry the suffix over to a variable known to syslog-ng, is it possible?
Reading the documentation we have the possibility for a parser, and honestly I don't want to do too much parsing, just grap the known suffix and put in as a new variable the file object understand.
Thanks in advance and stay safe