1
20.7 Legacy Series / Re: syslog-ng spamming general log once per minute
« on: November 22, 2020, 03:43:40 pm »/usr/local/opnsense/service/templates/OPNsense/Syslog/syslog-ng-local.confCode: [Select]################################################################################
# not captured elsewhere, but relevant, send to system[__].log
################################################################################
filter f_local_system {
not filter({{ all_filters|join(') and not filter(') }})
and level(notice..emerg)
and not message('Destination timeout has elapsed, closing connection; fd=')
};
destination d_local_system {
file(
"/var/log/system/system_${YEAR}${MONTH}${DAY}.log"
create-dirs(yes)
);
};
log {
source(s_all);
filter(f_local_system);
destination(d_local_system);
};
{% endif %}
I hope this helps someone.
Cheers,
Yes, it did! Many thanks