I figured I would want to see the traffic to my site, so I gave it a go with another script, after realizing I didn’t want to memorize long commands and go to the apache log directory (which I for some reason can’t cd in to, even with sudo) every time I wanted to check my logs.
So I wrote another little script.
Note: This only works for Ubuntu and, I think, Debian. Other systems have their logfiles in different locations.
Get all days
Get per hour today
That’s about it. I’m sure there’s a better way. Let me know if you have one. You can email me at rikard.hjort@that-google-mail-address.
Super thanks to Jacob Nicholson at Inmotion Hosting who wrote the blog post where I got the commands I used. I’ll be sure to go and understand them better when I have time.