Hello,
We have a apache server running on CentOS 4.3
In this server, our access log is creating in our predefined directory. We need to filter the entries on run time from this log and push them to their related directory under www.
For example,
Code:
10.56.16.25 - - [26/Sep/2006:20:29:24 -0700] "GET /Oatrs/Roadhouse.pdf HTTP/1.1" 200 3260245 "http://www.google.com/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
As this entry requests to a pdf file from Oatrs directory, we need to copy that to a seprate access log in Oatrs directory under www. We have implemented this by creating a filter script in perl using File::Tail perl module (got that from CPAN).
Every thing worked fine and we were getting log entries in to seprate access log for each directory.
However, suddenly the log files under www and its sub-directories messed up. These files were repeated with their old content. I mean, at same point log got double because the log was appeneded to itself due to unknown reason.
Our main access log file is fine.
We have checked with perl module, our script and everything which we can do but didn't find any reason for messing up.
Have a look into this. I know its not a common problem, but still, its a strange problem.
Thanks, Kirtimaan