Hacker News new | past | comments | ask | show | jobs | submit login
Small statistics page showcase done via sh, Awk, log parsing and cron (mkws.sh)
66 points by todsacerdoti on March 2, 2022 | hide | past | favorite | 8 comments



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")


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.


Thanks! I will check it out :)


Good work! I personally love this kind of small scripts for simple reports.

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


Thanks! Not sure if good idea to do it all in awk :D, it is mostly awk https://adi.onl/fl.html, sh is web frontend.


I’m more interested in this static site generator thingy at https://mkws.sh/


This is cool.


Author here! Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: