On Tue, 23 Oct 2001 at 12:49, Ian C. Sison wrote:
> with syslog you can 'prepend' a '-' at the beginning of the filename
> of the log file in syslogd.conf.  This will make all writes to that
> particular log file async/buffered, and will lessen the load syslogd
> will take on your system.

On Debian, syslog.conf already has most resource-hogging logs prepended
with a dash. The only log files that are not prepended with a dash are
auth.log, cron.log, mail.log, mail.err, news.crit, and news.err. And no,
nothing logs to the news.* stuff since I don't have a news server.
auth.log, cron.log, mail.log and mail.err weren't busy during that major
"lame servers" series.

I have an entry that I set up, though, and wonder if this eats up
resources significantly. I don't think so, but I'll post this bit anyway.
I put an entry:

daemon,mail.*;\
        news.=crit;news.=err;news.=notice;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       /dev/tty9

So that I see non-restricted log entries in the ninth virtual console.
It's great instead of constantly having to pass /var/log/syslog through
tail to get the latest "happenings". I don't see why this should be a
resource hog but ... if it is please let me know.

> When you do this, just be aware that since writes will now be
> buffered, there is a possibility that some logs will be lost if a
> power failure occurs.  If this is unacceptable set up a syslog server,
> and point your syslogd to log there.

I thought of this. Although I don't have resources (yet) or the continuous
load to justify such a distributed setup. I actually thought of having a
syslog server that had its own logs as files, but ran MySQL to which the
main server dumped all its logs. But like I said, I can't have a log
server. Unless of course we get these lame server thingies more often that
it gets in the way of real life.

I was wondering, though. Has anyone successfully set up a single server
that runs one of those newer syslog variants that dump their logs on a
PostgreSQL server, with both syslog and the PostgreSQL server on the same
machine? This raises chicken-and-egg race situations, but I wonder if it's
been done.

> and yeah i almost forgot use djbdns ( dnscache for you resolving proxy
> dns server and tinydns for your authoritative content dns server) :)

Dan Bernstein's tools all have (aside from their own firewall software)
their own logging mechanism, right? And does djbdns support TSIG? I need
this for Secondary.com kasi eh.

 --> Jijo

--
Federico Sevilla III  :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.
GnuPG Key: <http://jijo.leathercollection.ph/jijo.gpg>

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to