Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th February 2009, 21:26
nux nux is offline
Junior Member
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default in regards to Caching reverse squid proxy with debian

Hey, I have a question that resulted from this howto:

http://www.howtoforge.com/how-to-set...on-debian-etch

I am trying to process logs passed to apache from squid with the X-Forwarded-For header.

The issue is sometimes it sends multiple IP addresses, and I want to limit it to sending just the external (or the farthest right) IP. I just want to properly parse the logs with awstats.

Not exactly sure how I would do this.

Any suggestions would be appreciated.

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 11th February 2009, 20:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
 
Default

That's a good question. I think you could write a shell script that processes your access log and deletes the second, third, fourth... IP before awstats uses the access log to create its stats.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on: How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch tomdkat HOWTO-Related Questions 2 25th January 2009 01:56
Question on : How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch marchost HOWTO-Related Questions 2 16th January 2009 15:06
Mod_Perl Configuration Issue szise Installation/Configuration 4 28th November 2008 13:41
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 01:57


All times are GMT +2. The time now is 02:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.