Clarity - an open source web interface to grep and tail

  • It's MIT-licensed, which is great. I don't so much need a web interface to grep on my own servers, but would very much like to embed something like this into my product.

    I can imagine it would be extremely useful to an ops team; my whole life is driven off my browser bookmark bar, and this presumably lets people bookmark server logs.

    Under the hood, this is single-threaded EventMachine, using EventMachine::popen to relay output from processes to the client, and HTTP chunked encoding to push results to the browser. It's HTTP Basic Auth only, and it runs Actual Unix Commands, so make that password good.

    Nicely done!

  • This is a great open source tool. Very useful.

  • Very creative and useful!

  • any idea how to port this line of code to work on a MS Windows ruby platform?

        %[sh -c '#{results.join(" | ")}']
    
    ~ I've tried a few things but keep getting this: Running: sh -c 'grep -e hello access.log'

    This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.