Syslog-ng port and newsyslog

Lars Wittebrood lars at socruel.nu
Sun Dec 5 09:14:50 PST 2004


Hi Garance,

Thanx for your reply. All working now. I mixed things up. After using
the right .pid file for Syslog-ng (syslog.pid) all working fine
including zipping of rotated logs.

Regards,
Lars.

-----Original Message-----
From: Garance A Drosehn [mailto:gad at FreeBSD.org] 
Posted At: vrijdag 3 december 2004 23:11
Posted To: freebsd-ports
Conversation: Syslog-ng port and newsyslog
Subject: Re: Syslog-ng port and newsyslog


At 8:49 PM +0100 12/3/04, freebsd-ports wrote:
>Hello,

Hi.  I am one of the guys who has worked on newsyslog.

>I have installed the Syslog-ng port and I do not seem to get the 
>rotation of the logfiles right.
>
>Newsyslog has /var/run/syslog.pid hardcoded as it's pid file, so I 
>already configured this as the pid file for syslog-ng. But at rotation 
>newsyslog doesn't zip the logfiles as stated in my /etc/newsyslog.conf 
>file.
>
>Does anyone have a clue what is wrong here?

So the files are always rotated, but they are not getting zipped?
Do you see any messages in /var/log/messages at the time of the
rotation?

If you 'cat /var/run/syslog.pid', what process number do you see?
Is it the right process ID for your syslog_ng process?
Is the standard syslog still running?  (check with 'ps', just to see if
something has fired it up by mistake).

Try running 'newsyslog -nvv', and see if that gives you any error
message about the PID file.

Also, note that you can change your newsyslog.conf file to specify which
PID file to look at.  Perhaps that would work.

I am just about to leave for the day, but I will probably be in later
today or sometime over the weekend.  Let me know if you can get it
working.

-- 
Garance Alistair Drosehn     =      gad at gilead.netel.rpi.edu
Senior Systems Programmer               or   gad at FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA




More information about the freebsd-ports mailing list