Avatar of Frosty555
Frosty555
Flag for Canada asked on

Simple tracking of apache traffic

I'm hosting my own website on a local server on my office, and I'm hoping to keep tabs on the bandwidth usage and hits that the website is getting. I'm not too concerned about analytics, I just want to monitor the activity so I can know if the website is getting more traffic than my ISP will allow or if I'm getting hammered by any automated bots or crawlers.

I'm imagining a service that runs on the linux machine that monitors / parses the apache access logs or something... but if I have to put code onto my web pages I can do that too.

I've looked into Google Analytics and while it looks great, it also is tremendously complicated and I don't need nearly that level of sophistication, I really just need to see hit-counts and a breakdown of what IP addresses queries what pages when and how often.

Is there any simple php/apache/js/something way of monitoring the traffic through my apache server, or for my website?

Bonus if it can integrate cleanly with Nagios (e.g. a nagios plugin for a service check that will tell me if I'm exceeding my expected traffic threshold).

Again, I'm looking for something simple to implement, not super-feature-filled.
Apache Web ServerWeb DevelopmentWeb Servers

Avatar of undefined
Last Comment
Frosty555

8/22/2022 - Mon
SOLUTION
RaithZ

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Linux Guru

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Frosty555

ASKER
piwik looks really promising and easy to install, but requires a tracking script on every single page. Not impossible to do, but I really like the idea behind Webalizer that it reads the server logs directly.

The apache built in stats are a nice feature too - I didn't realize that Apache had already done that.

Thanks for the help guys, this is great start.
Frosty555

ASKER
Solution is going to be one of: Webalizer, Piwik, or Apache mod_status
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck