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

Adding new logging to syslog

  I've been working today on having ht:/dig searches logged. The htsearch
program can be logged by syslogd, but I'm having a problem getting syslog
to put these logs into a file other than /var/log/messages.

If they go into /var/log/messages, then a search is logged as (all in one

Feb  5 12:43:01 demeter htsearch[2383]: demeter [htdig] (and) [steve]
[steve] (14/10) - 1 -- http://demeter/cgi-bin/htsearch

This one was a search for pages with "steve" in them.

If I edit /etc/syslog.conf so that the default file line looks like:

*.info;mail.none;authpriv.none;htsearch.none	/var/log/messages

Then the htsearch records nolonger show up in /var/log/messages, just like
I expected. But then if I add a record like:

htsearch.*						/var/log/htsearch

Nothing shows up in the new log file. I think I have the permissions
right. I was wondering if the PID which is connected to htsearch in the
successfull /var/log/messages logging is making the problem?


Erich Schroeder                    Phone: (217)785-0033
Curator, Information Technologies  FAX:   (217)785-2857
Illinois State Museum GIS Lab      Internet: erich@museum.state.il.us

To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.