LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2006, 08:23 AM   #1
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Rep: Reputation: 31
Apache Access Log File Problem


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
 
Old 10-23-2006, 09:07 AM   #2
nayyares
Member
 
Registered: Oct 2006
Location: JNB, SA
Posts: 33

Rep: Reputation: 15
Hi,
If the content is rewritten, it means that the writable buffer of your script has problem with loading new values from the original file, check it out, thanks
 
Old 10-23-2006, 11:27 PM   #3
kirtimaan_bkn
Member
 
Registered: Aug 2004
Location: INDIA
Distribution: Various Distros
Posts: 203

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by nayyares
Hi,
If the content is rewritten, it means that the writable buffer of your script has problem with loading new values from the original file, check it out, thanks

Thanks nayyares,

If the wriatable buffer is the problem, then can you tell me a way to reproduce the problem. As you wrote that there is something wrong with writable buffer of script, how I can re-create that situation on my local test system.

This way I will be able to fix the problem. Any other suggestion to prevent this also appericiated.

Thanks, Kirtimaan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
How do I view the default Apache access log file? johann519 Linux - General 2 05-10-2004 11:46 AM
Apache access log ncorreia Linux - Software 2 10-10-2003 04:45 AM
apache access log mindcry Linux - Security 6 02-12-2003 12:17 PM
Apache Access Log Crashed_Again Linux - Security 2 01-24-2003 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration