I added this config for cron support (/usr/local/etc/syslog-ng.conf.d/syslog-ng-cron.conf):
Unfortunately there's no way to add this to the application list for remote logging, so you ether have to add a duplicate destination or use the generated one by opnsense:
Code Select
filter f_cron { facility(cron); };
destination d_local_cron {
file(
"/var/log/cron/cron_${YEAR}${MONTH}${DAY}.log"
create-dirs(yes)
flags(syslog-protocol)
);
};
log {
source(s_all);
filter(f_cron);
destination(d_local_cron);
};
Unfortunately there's no way to add this to the application list for remote logging, so you ether have to add a duplicate destination or use the generated one by opnsense:
Code Select
...
destination(d_6bf9323eda944bbd9b28befeb8e2ce55);
...