LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-29-2008, 05:45 AM   #1
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Rep: Reputation: 15
syslog-ng instead of syslog


hello guys
in attend to test something in my box i wanted to disable the normal syslogd that comes by default with slackware12 and replace it with syslog-ng, now i'v already disabled sysdlog and started syslog-ng,
is there something special to do after that to make sure that syslog is fully replaced with the syslog-ng?
thank u all for any reply
 
Old 04-29-2008, 08:53 AM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Just double check that all your programs dump there instead of trying syslog. Check your syslog-ng config to make sure it catches everything you need.
 
Old 04-29-2008, 06:45 PM   #3
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
lets say sshd or dhcpd how would they refer to syslog-ng cause there is nothing in dhcpd.conf that points to any logging ?
thanks for u reply
 
Old 04-29-2008, 11:31 PM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by hemi_426 View Post
lets say sshd or dhcpd how would they refer to syslog-ng cause there is nothing in dhcpd.conf that points to any logging ?
thanks for u reply
For those programs (and most others) there is nothing to specify in their configurations (files under /etc). sshd, for instance, allows you to specify the log level, but it does not specify what the log file is. That is handled by your log daemon's configuration. For some other programs, however, their configuration might specify where to log it's information. Typically, these logs are only for that program, however, instead of say one log file that catches many things (like /var/log/syslog).

In short, probably all you have to do is
1) make sure rc.syslog-ng is started during system boot
2) change syslog-ng's config to catch what you want and in what files.

The first one requires a little bit of hacking for slackware, however.
If you don't have a rc.syslog-ng file, then copy whatever startup script syslog-ng has to /etc/rc.d and make it executable. Now, you need to make sure that all the startup scripts that refer to syslog will now refer to syslog-ng instead. I suggest grepping all the files under /etc/rc.d for syslog. That is
Code:
grep syslog /etc/rc.d/*
Important files that I'm sure will come up will include at least:
rc.M - starts syslog, so change it to syslog-ng
rc.inet1 - set $LOGGER to syslog-ng logger executable
rc.inet2 - tries to start syslog if it isn't already (if /usr is on a network partition). Change this to syslog-ng

If you are lazy you might be able to simply move rc.syslog to a safe place and then symlink rc.syslog-ng to rc.syslog. Even still, you will end up having to modify some startup scripts because they check for /var/run/syslogd.pid, which isn't the process id you care about.
 
Old 04-30-2008, 02:50 AM   #5
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
very beautyfull tutorial ,U ROCK
thanks alot
 
Old 04-30-2008, 09:57 AM   #6
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
I hope you enjoy syslog-ng, and welcome to LQ!
 
  


Reply

Tags
slackware, syslogng



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 09:51 AM
Need help in syslog arthik_tn Linux - Newbie 2 11-15-2007 08:20 AM
Syslog sakthi.s Linux - Server 7 11-05-2007 07:13 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM
syslog brandonweinberg Linux - Software 0 03-10-2004 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration