Re: my linux syslog not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I had found the problem myself.  Thank u very much..
below the file and need to be changed 

/etc/sysconfig/syslog to determine the various modes
in which it should operate. Syslog will not listen for
remote messages unless the SYSLOGD_OPTIONS variable in
this file has a ??r? included in it as shown below.

 

# Options to syslogd

# -m 0 disables 'MARK' messages.

# -r enables logging from remote machines

# -x disables DNS lookups on messages recieved with -r

# See syslogd(8) for more details

SYSLOGD_OPTIONS="-m 0 -r"

# Options to klogd

# -2 prints all kernel oops messages twice; once for
klogd to decode, and

#    once for processing with 'ksymoops'

# -x disables all klogd processing of oops messages
entirely

# See klogd(8) for more details

KLOGD_OPTIONS="-2"

 


--- jim martin <postfix168@xxxxxxxxx> wrote:

> Yes,  I tried the following and restart syslogd  it
> does log to the files.  But it doesn't collect my
> router log 
> 
> *.*		/ 	/var/log/routerlog
> 
> --- Brian Fahrlander <brian@xxxxxxxxxxxxxx> wrote:
> 
> > On Tue, 2004-09-21 at 23:13, jim martin wrote:
> > > Hi.. I have configured the syslog on the router
> to
> > log
> > > to my linux box.
> > > 
> > > I configured on my router
> > > logging facility local5
> > > logging 10.1.1.6
> > > logging trap info
> > > 
> > > on my linux FC2 box
> > > add a entry in /etc/syslog.conf
> > > local5.*      /var/log/routerlog
> > > 
> > > chmod 777 /var/log/routerlog
> > > ps -ef | grep 
> > > 
> > > [root@linux root]# ps -ef | grep syslog
> > > root     23547     1  0 Sep21 ?        00:00:00
> > > syslogd -m 0 -r
> > > root      3044 29259  0 12:11 pts/3    00:00:00
> > grep
> > > syslog
> > > 
> > > [root@linux root]# kill -HUP 23547
> > > 
> > > [root@linux root]# netstat -a | grep syslog
> > > udp        0      0 *:syslog                *:*
> > > 
> > > There is still no log,  Why ?  Any one can point
> > out
> > > what is the error?  Seems like the router log is
> > not
> > > coming in at all  :(
> > 
> >     Like in a lot of places, try it with no
> > restrictions, then tighten
> > it to get what you want/need.  This of course is
> the
> > case if you
> > _haven't_ restarted syslogd ("service syslogd
> > restart").
> > 
> >     Try something like this first, to prove the
> > concept, then tune it
> > down:
> > 
> > *.*		/ 	/var/log/routerlog
> > 
> >     If you restart it and it starts filling up,
> then
> > start chosing your
> > keywords.  I don't know any off the top of my
> head,
> > but they're in the
> > kernel documentation, surely.
> > 
> >     Just don't forget the restart.
> > -- 
> >
>
------------------------------------------------------------------------
> > Brian Fahrländer                  Christian,
> > Conservative, and Technomad
> > Evansville, IN                                
> > http://www.fahrlander.net
> > ICQ 5119262
> > AIM: WheelDweller
> >
>
------------------------------------------------------------------------
> > 
> 
> > ATTACHMENT part 1.2 application/pgp-signature
> name=signature.asc
> > -- 
> > fedora-list mailing list
> > fedora-list@xxxxxxxxxx
> > To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe:
> http://www.redhat.com/mailman/listinfo/fedora-list
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux