At my office I recently wondered aloud to all, "Why shouldn't these logs be redirected to /dev/null instead of /dev/lognull?" I was told that there is (or was) a reason, but no one could remember it. I was told that the reasons is in the syslog-ng documentation somewhere, but so far I haven't been able to find it. Does anybody know the reason?
I was just emailed this from my boss:
And I also found this thread on the syslog-ng list about the issue. So far I've followed the advice about an empty destination.
I have never heard of /dev/lognull.
What does this return?
I suppose it's possible syslog-ng is creating that device node, but man, seems very strange.
I have to admit I'd find it pretty entertaining if /dev/lognull were a large regular file. :)
Simply define a log statement with a source but no destination: https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.21/administration-guide/55#TOPIC-1180579