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

Re: syslog not logging to files



>   This message is in MIME format.  The first part should be readable
text,
>   while the remaining parts are likely unreadable without MIME-aware
tools.
>   Send mail to mime@docserver.cac.washington.edu for more info.
> 
> 
> On Wed, 15 Nov 2000, R. W. Rodolico wrote:
> 
> > Syslog is not logging to files. It simply displays the output on the
> > active terminal.
> 
> What is it logging to the console?

The one I specifically remember was bind.
> 
> What is it not logging to files?

Almost iterally nothing. The only files with non-zero length are dmesg,
faillog, installer.log, lastlog, messages, setuid.changes syslog, wtmp
and xferlog. Of those, messages and syslog only contain the -- MARK --
entries and notifications when syslog was being shut down and started
up. lastlog is binary, as is wtmp. 

Ran syslogd with the -d flag set, captured the output to the attached
file. Only problem I noted was that it errored when trying to open a
file named /dev/log. I can find no entry  /dev/log in /etc/syslogd.conf.

> 
> What do you want logged?

Same as I have on my other server. Bind, mail, pop, ftp, errors,
warnings, etc...

> 
> > Funny thing is, it does record when I start and stop syslogd, and it
> > still does its "marks".
> 
> I guess you are talking about /var/log/messages. What are you
expecting in
> your logs?

Bind notifications, sendmail notifications, errors in configurations,
etc... I did not begin to notice this until I was trying to troubleshoot
a problem and found that my log files were, basically, empty.
> 
> Can you manually use the logger program to log something to a
> different log file?

executed following command:
sudo logger -f /var/log/syslog This Is A Test
sudo logger -f /tmp/joe This is a Test

neither produced  an entry
>  
> > Attached is syslog.conf.
> 
> With small text files, I believe it is easier to just include it in
the
> email instead of as an attachment (like Application/OCTET-STREAM).
> 
> Anyways, it appears most of your sylogd config is like mine. (I just
have
> added a local2.* action and uncommented the last few lines.)
> 
>   Jeremy C. Reed
>   http://www.reedmedia.net/
>   http://bsd.reedmedia.net/
> 
> 

R. W. Rodolico
Daily Data, Inc.
POB 140465
Dallas  TX  75214-0465
214.827.2170

It appears I could be pursuing an untamed ornithoid to no purpose.
            --Brent Spiner as Data, Star Trek: The Next Generation

Attachment: syslog.out
Description: Binary data


Reply to: