top | item 30524516

Small statistics page showcase done via sh, Awk, log parsing and cron

66 points| todsacerdoti | 4 years ago |s.mkws.sh

8 comments

order
[+] marvinblum|4 years ago|reply
That's nice! I started similar [0], but by intercepting requests on my server instead of parsing logs. Do you filter bots? How effective is it?

[0] https://pirsch.io/blog/introduction/ (find an image below "How It Started")

[+] adriangrigore|4 years ago|reply
I'm using https://github.com/atmire/COUNTER-Robots to filter bots, I guess it's effective enough, it catches most bots. There are more lists on web with bot user agents, some free, some you have to pay for, do some Googling.

Regarding parsing logs, I preferred a 100% self hosted solution. To me, it seems _the right_ way to do it.

It's just a showcase, something I hacked up in a few hours, I already had https://adi.onl/fl.html to have analytics in the CLI, just added a web frontend to them.

[+] ValtteriL|4 years ago|reply
Good work! I personally love this kind of small scripts for simple reports.

Next, try to do it all in AWK ;-)