Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - AlexAchileus

#1
Quote from: Koldnitz on November 08, 2020, 08:08:57 PM
/usr/local/opnsense/service/templates/OPNsense/Syslog/syslog-ng-local.conf


################################################################################
# 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