[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding new logging to syslog
Found my own answer in the documention of ht://dig. The logging is
hard-coded to a facility of LOG_LOCAL5 and a default level of LOG_INFO, so
in my /etc/syslog.conf file I had to change the line to:
local5.info /var/log/htsearch
Always a good idea to RTFM.
eks
On Sat, 5 Feb 2000, Erich Schroeder wrote:
>
> Hi,
> 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
> line):
>
> 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
>
> ---------------------------------------------------------------------
> Erich Schroeder Phone: (217)785-0033
> Curator, Information Technologies FAX: (217)785-2857
> Illinois State Museum GIS Lab Internet: erich@museum.state.il.us
> http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html
> ---------------------------------------------------------------------
>
>
> --
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
>
---------------------------------------------------------------------
Erich Schroeder Phone: (217)785-0033
Curator, Information Technologies FAX: (217)785-2857
Illinois State Museum GIS Lab Internet: erich@museum.state.il.us
http://www.museum.state.il.us/ismdepts/anthro/staff/erich/erich.html
---------------------------------------------------------------------
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.