Discussion Locked

Displaying SYSLOG an Apache Webpage

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Anyone know how I can display my syslog files, (i.e. /var/log/cisco.log) as a webpage in Apache?

For example:

http://server/cisco --> shows contents of /var/cisco.log

http://server/hpdevices --> contents of /var/hp.log

etc, etc, etc...

4 replies

by cpfeiffe

A simple method is to have your DocumentRoot point to the directory that the log files are in and don't have an index file. It will just display a list of files and when you click the file it will open. I have done this very simple method before. If you want a more elaborate method you can use an index file and write some html code. I have also used Perl/CGI to build a log search engine.

by dnguyen

Thanks cpfeiffe... However, this server is also serving multiple functions and I need to have a seperate web instance so as not to break anything else...

I'm using a Virtual Host right now, but it only displays one file and I have to use the following syntax: http://server:10000

I don't want to use just port numbers because it will be easy to forget.

This discussion is closed to new replies.