[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2007-03-20
5
Medium Priority
?
437 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

649 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