why is web traffic being written to the rotated log file?



Hello,

I've had this problem for a while and have not been able to pinpoint the
cause or determine a frequency. Every once in a while (read, when I
notice) I'll see that what SHOULD be the active web log file is not
being written to and instead the rotated version of the log is being
written to. It's seems like the log rotating process gets interrupted
(or something) and doesn't get a chance to finish so syslog gets
confused and writes to the rotated log file instead of the new log file.

Take this morning for example. I come into the office, check the
webalizer stats for the site and see that the graph has only reported a
small amount of traffic on the 26th and nothing on the 27th or 28th.
Then I check the logs and see that custom_log is at 0 bytes. But what I
also notice is that even though custom_log is 0 bytes, syslog is STILL
writing data to custom_log.1 (all hope is not lost, at least I still
have my data).

So I 'service httpd restart' and see that custom_log is now being
written to and custom_log.1 is no longer being written to.

Fortunately my web traffic is being written to a log file instead of the
log file it should be so it's mostly just an annoyance. But how can I
prevent this or find out what is causing it?

BTW I'm using FC3.


Thanks,
Chris.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: [Repost] php log to own syslog file
    ... >> Im trying to figure out how to setup FreeBSD 5.3 to log ... >> php events to its own log file via syslog. ... the php function syslog(). ...
    (freebsd-questions)
  • Re: checking firewall traffic....?
    ... > need help with the syntax in the syslog to create the "iptraf" log file. ... kern.=info (thats kernDOT=info) /var/log/whatever.log ... If so, put a -j LOG --log-level 2 in your iptables logging line, ...
    (comp.os.linux.security)
  • Re: redirect to syslog
    ... >> rather than to syslog. ... Instead of letting the program create its log file, ... pre-create it as a named pipe and let the program pick it up. ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: nomal log file can be send to syslogd of another machine?
    ... > if a appliation is writting some information into one log file ... That's pretty easy if your application can write logs via the syslog() ... Many standard applications do, ... If your application writes logs only to a file, use the -f option of logger ...
    (comp.os.linux.development.apps)
  • Re: redirect to syslog
    ... >>> rather than to syslog. ... >> as far as I know, to externally change output to a regular file into ... Instead of letting the program create its log file, ... > pre-create it as a named pipe and let the program pick it up. ...
    (comp.lang.perl.misc)