Martin Paul wrote:
> Am 10.10.2013 21:31, schrieb Volker Borchert:
> > Martin Paul wrote:
> >> Can syslogd on Solaris be told to log unknown facilities as well?
> >
> > On Solaris 7, octal numeric values (like in '088.debug') work.
> > Might be worth a try.
>
> Tried both "0120.debug" and "120.debug" on Solaris 10 to catch "#define
> LOG_AUTHPRIV (10<<3)", but it doesn't work. Too bad, supporting
> unknown codes in this way would have been an elegant solution.
Hm... it should have been obvious even to me that 088 can't be octal...
Output from syslogd -d is
------------------------ priority = [file, facility] ------------------------
0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
--------------------------------------------------
X X X X X X X X X X X X X X X X X X X X X X X X 7 FORW: loghost
X X X X X X X X X X X X X X X X X X X X 7 X X X X USERS: root
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FORW: loghost
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X WALL:
X X X X X X X X X X X 7 X X X X X X X X X X X X X FILE: /var/log/net
X X X X X X X X X X X X X X X X X X X 6 X X X X X FILE: /var/log/net
and the relevant part of syslogd.conf is
088.debug /var/log/net
local3.info /var/log/net
19 is local3, on both NetBSD and SunOS. 11 is LOG_FTP on NetBSD, and
obviuosly originates from the 088. But how? I don't remember, I must
have had figured it out in 2002 ;-)
..
..
..
It seems to be _decimal_ with leading zero - eight times eleven gives
eighty-eight. Looking at the sources of my BSD-ish syslogd:
if (isdigit(*name))
return (atoi(name));
So, please try 080 - if only to do me a favor ;-)