Syslog - Set filter level

I have the syslog function setup and it works great, I also receive syslog messages from other units with success.

My problem is that LibreNMS itself spit out a ton of “info” messages and I cannot figure out how to set the level to 5 (notice) instead of 6 (info).

It would be nice if the receiver filtered away everything above 5 instead of changing each device sending the info.
It is probably easy but I seem to lack google skills in this case :slight_smile:

1 Like

Since no one care to advise for 2 weeks here is the code if someone else is interested

In your syslog-ng.conf just add the 2 lines in bold.
Basically you define a filter and then you add it.

filter f_boot { facility(local7); };
filter f_cron { facility(cron); };
filter f_noinfo { level(notice…emerg); };

########################

Log paths

########################
log {
source(s_net);
source(s_sys);
filter(f_noinfo);
destination(d_librenms);
};