4 ms·
Ngtop – Request analytics from the Nginx access logs
- renewiltord 2y agoThis is cool. I just installed goaccess and was using that to look at the nginx logs but this is also neat. I like post-hoc analysis of these things rather than injecting JS just because it's easier for me to manage for my personal sites. Thank you.
- codazoda 2y agoThis looks great. I wrote my own “counter” for my personal sites but I haven’t developed it a lot more. This probably makes more sense.
- vlasky 2y agongxtop is also very useful for providing real-time metrics: https://github.com/lebinh/ngxtop https://github.com/lebinh/ngxtop
- robohoe 2y agoToo bad the maintainer stopped responding to or accepting pull requests…lot of PRs open for 10 years, including mine
- ploxiln 2y agoPick a slight variation on the name, look through the unmerged upstream PRs to find some "obviously good" ones (or to fix other deficiencies you noticed personally), merge them to your fork, and who knows ... your fork might become the next popular home of the project!
- Zambyte 2y agoUnless you're pushing to the same GitHub account / group, you don't even have to change the name.
- antifarben 2y agoDid you consider maintaining a fork? Because it looks nice indeed.
- Cherian 2y agoIs there something like logwatch that could send me a digest of all 404s, 500s etc.?
- uldus 2y agoIt is not for production use because: "Whenever the program is run, it looks for the nginx access.logs, parses them and stores the data into an SQLite DB. " ... "The command line arguments express a filtering criteria, used to build the SQL query that counts the requests."
- anoother 2y agoWhy does that exclude it from production use?
- iamcreasy 2y agoWhat is the simplest solution to access nginx log? Could it be setting an endpoint(behind simple user/pass) that echos the content of the log?
- elchief 2y agossh is the simplest for exporting nginx logs elsewhere, vector.dev is nice. can send to dozens of places. can parse user agent string, and do ip geocoding too
- iamcreasy 2y agoThanks, but I want to access the log through browser though.
- rigid 2y agoa decent syslog daemon will stream it anywhere you like
- ValtteriL 2y agoI used something similar in the past for website analytics but came to realize that javascript based tracking is more useful for my use case of understanding how people use my website. JS tracking leaves out most bots as well. They were a nuisance with this method.
- walth 2y agoFound it much easier to just used structured logs and slice them with [angle grinder](https://github.com/rcoh/angle-grinder https://github.com/rcoh/angle-grinder)
- metadat 2y agoRecently discussed 3 months ago: https://news.ycombinator.com/item?id=41115128 https://news.ycombinator.com/item?id=41115128 (11 comments)
- xorcist 2y agoGoaccess (https://github.com/allinurl/goaccess https://github.com/allinurl/goaccess) does this in real time and has been very stable for well over a decade.