Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Text to HTML?

On Mon, 2011-08-29 at 10:04 +1000, DaZZa wrote:
> Hi.
> I'm looking for something that can take a text file and convert it
> into HTML, possible with some highlighting.
> I've got some routers reporting to my syslog server on a Linux box,
> but I want to be able to do a quick scan for bad things without having
> to SSH to the box and scrolling through the text file.
> It'd be nice if the files could be put in some form of date
> order/heading for each tracking (in conjunction with logrotate, maybe)
> to ensure all that it in the link is one days worth of logs.
> Anyone know of such a beastie? It's be nice if it was CentOS
> compatible, since that's what I'm stuck with at work, but if it's
> source and needs to be compiled, so be it.
> Thanks.
> DaZZa

Don't convert it.   Apache will present a file as text which you can
then look at with a browser.

Alternatively a very simple perl (whatever) program could be used to rip
through the log and present things you are interested in quickly and
then present the full log at the click of a button.

I would also bee looked for log analysis programs,  most will analyse
and present logs with colour.