so, looking at this example and reading 'man 3 syslog' which tells me:
 facility
       The  facility  argument  is used to specify what type of program is 
logging the mes�
       sage.  This lets the configuration file specify that messages from 
different facili�
       ties will be handled differently.
---snip---
 LOG_KERN
              kernel messages

       LOG_LOCAL0 through LOG_LOCAL7
              reserved for local use

it would appear that 'local' is sort of like a reference number or a tag that 
can be defined by me and that i can use up to 8 different ones?

the question remains, the man pages don't give an example of how use 'local' 
in /etc/syslog.conf to set the facility for a host, and if i do does this 
mean that all messages from say, my ftp box will lose their identity as 'ftp' 
or 'kernel' messages and now be simply 'localN' messages?
i'm trying to sound as though i know what i'm talking about but i suspect i'm 
still off track:-)

bascule

On Monday 28 January 2002 6:04 pm, you wrote:
>ll)
> logging facility local6 <-- sets facility
> logging 192.168.1.123   <-- logs to host 192.168.1.123
>
> Then, in your syslog host:
>
> /etc/syslog.conf:
> # Cisco logging
> local6.*      /var/log/cisco  <-- I use /home/logs/RouterLog
>                                   to avoid filling /var
>
> Forgot to mention that the above log file must exit before restarting the
> daemon; can be created with:  touch /var/log/cisco (assuming that's the
> name you used in syslog.conf...
>
> Note:  localN in cisco must match localN in syslog.conf
>
> M

-- 
Noble dragons don't have friends. The nearest they can get to the idea is an 
enemy who is still alive.
(Guards! Guards!)

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to