
Originally Posted by
slacker908
Hello,
I configured sysklogd to gather logs from all my Cisco devices, and created a web page to view the logs from any PC on the network. I'm using the following code that I got off the web for doing this (see bottom of post)
The problem is that the output of this file does not word wrap, and it's very jumbled to view. If I do a "cat syslog" the file views fine, but in the browser there are several entries on each line. Is there any way to format the output? Create some sort of table or border to not allow it to have multiple events on each line? Is there some other app I can use to point to my log file to read it?
Thanks,
Scott
<html>
<head>
<title>Enterprise Syslog Log File</title>
</head>
<body>
<center>
<h2>
MyCorp Enterprise Syslog Log
</h2>
</center>
[an error occurred while processing this directive]
<br>
</body>
</html>
Try wrapping your SSI in <pre> tags. There probably aren't any html tags in your included filed so the browser doesn't know how to format the text. White space and line breaks don't matter in html unless you have <pre> tags around the text.
Code:
<pre>
<!--#include file="enterprise.log" -->
</pre>
Let us know if that works.
Bookmarks