DevHeads.net

Tracking URL usage

Hello,
I am looking for an Apache module that allows me to track the number of times each URL is requested on my Apache Web Server. Does such a module exist or is there another project that does this?

Jay Leggett

Comments

Re: Tracking URL usage

By David Gessel at 01/07/2019 - 14:16

Jay,

I'm not sure if there's a reason for looking for an Apache Module rather than an web log analytics tool.  If the latter would fit the bill:

That information can be extracted from the log files fairly easily by grepping for a particular URL (using the -c option).  This can be automated into a shell script for a simplified DIY analytics capability.

For more full-featured analytics, I've used Piwik and AWstats previously.  Piwik was my favorite and is called Matomo now. 

-David

On 2019-01-07 20:21, Jay Leggett wrote:

RE: Tracking URL usage

By Houser, Rick at 01/07/2019 - 13:29

What you are requesting is in the realm of log analysis, not server behavior. I strongly suggest looking at existing log parsers for "combined" format Apache logs (to preserve referral headers, method, response times, etc.), but you could also create a minimal access log in a simpler format if you just wanted to run $ sort < logfile | uniq -c

Rick Houser
Web Engineer