Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 12th, 2002, 05:36 AM
chinook chinook is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: London, England
Posts: 262 chinook User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 58 sec
Reputation Power: 8
Log File Analyzing

Hello,

I user the following in my vhosts.conf file to rotate my logs as they were becoming unmanageably large:

LogFormat "%h %a %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" log_this
CustomLog "|/usr/local/apache/bin/rotatelogs /home/users/intersharedev/logs/access_log 2593000" log_this env=!dont_log

And this has resulted in log entries which look like:

194.128.255.225 194.128.255.225 [04/Feb/2002:15:07:42 +0000] "GET /bestpractices/index.php HTTP/1.1" 200 15450 "http://www.casewise.
co.uk/lounges/index.php" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"

As you can see the IP address is being inserted twice. How can I get rid of this?

Also I use webtrends to analyze logfiles, however it doesn't recognise this format, I hope that it will recognise the format as long as the IP address is only there once, however I'm not sure. Has anyone any suggestions what I can do going forward, and also how I can analyze my previous logs in the above format?

Thanks very much.

Reply With Quote
  #2  
Old March 12th, 2002, 08:31 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> How can I get rid of this?

Remove %h or enable HostnameLookups or perform post DNS lookup.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Log File Analyzing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT