I need to write a simple server, like an HTTP server, but that would also be monitoring log files like syslog files or apache log files. The server will collect statistics about the messages written to the log files and serve those statistics via HTTP. It therefore needs to be multi-threaded or use select() so that it can detect when there are new HTTP connections to service or new data written to the log files it is monitoring. The server won't be getting a lot of traffic, but it should be able to handle more than one connection at a time.
Is there a framework that would make this easy to implement? How would you go about doing this? Has this already been done before? Note the server component could be SOAP instead of HTTP - anything that is easy to access.
Thanks!