View apache logs live on the web

Discussion in 'Programming/Scripts' started by Mosquito, Nov 27, 2007.

  1. Mosquito

    Mosquito New Member

    I am looking for a way to view apache logs in realtime, via a web browser. I know I can view them in realtime using 'tail -f /path/to/apache/log', but is there a way to output this on a website?

    My overall goal is to get a user friendly way of viewing access attempts in realtime. Eventually, I would add the ability to filter out certain accesses (ie. if a jpg is access, or a css file, etc). Does anyone have any ideas how I could accomplish this using only log files? I know I could do some fancy ajax work if logged to a DB, but that is for another project. Ideas?
     
  2. edge

    edge Active Member Moderator

  3. Mosquito

    Mosquito New Member

    Wow. That was fast! Thank you. I had browsed SourceForge for a couple days and couldn't come up with anything that did what I need.

    I will test this class out and let you know if I can do what I need with it.
     

Share This Page