Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

very, very cool.

node.js is also my (current) tool of choice for real time logfile analysis, i use a slightly different approach.

i ssh funnel the logfiles to my machine i.e.:

   ssh server.example.com sudo tail -f /var/log/nginx/example.com_access.log > test.log
then use this (disclaimer: coded it during a hackweek) lib https://github.com/franzenzenhofer/nolog to attach events to the logfile

   nolog('./test.log').shoutIf('googlebot', /Googlebot/i ).on('googlebot', function(data) { ... });
basically you

   - watch a logfile
   - shoutIf you come across a given pattern (can be regex or function)
   - listen if a shout event occurs
i will definitly look into log.io and see if there is a way to plug nolog somewhere in there.

an important addition to log.io would be log servers in php, asp(x) and all the other legacy languages. my experience is that webservices that allow and/or use modern development approches already have a suitable logfile observation, but all the millions of sites stuck with yesteryear really struggle with it.



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

Search: