?
Solved

Squid access log - how to log just the domain, not the whole URL?

Posted on 2007-03-20
5
Medium Priority
?
435 Views
Last Modified: 2008-01-09
In the Squid access log there is a lot of info being logged by default. I have already limited all of the redundant info I am not interested in to save some space. However, the most space is taken by the accessed URL. I don't want to log the whole URL but just the domain name the user accessed - e.g. instead of logging "http://domain.com/somedir/somefile.html" I want to have just "domain.com" written to the logs.

I have read the info at http://www.visolve.com/squid/squid30/logs.php#logformat but could not find the option I am looking for so maybe there is no way around it. But maybe there is ;)

Thanks!

Tomas

0
Comment
Question by:tomfra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 14

Expert Comment

by:pablouruguay
ID: 18756823
check this URL with an example and folow the thred if you need

http://www.squid-cache.org/mail-archive/squid-users/200610/0584.html
0
 

Author Comment

by:tomfra
ID: 18758182
That's a solution for something completely different I am afraid. They discuss having a separate access log for each of the domains the users visit while I want to have just one access log and simply do not record the whole URL the users visit but just the domain name part.
0
 

Author Comment

by:tomfra
ID: 19186764
I have come to conclusion it is not possible to log just the domain name instead of the full URL with Squid 3. It could probably be done in the source code only which I am not really interested although if someone believes it would be easy enough to "hack" the source in such a way, please let me know.

Apparently, the logical solution is to log the whole URL and get rid of all of the unnecessary info on the log processing script side although there are some disadvantages with this solution too.

Tomas

0
 

Accepted Solution

by:
AnnieMod earned 0 total points
ID: 19389414
PAQed with points refunded (500)

AnnieMod
Cleanup Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question