SLUG Mailing List Archives
Re: [SLUG] Text to HTML?
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Text to HTML?
- From: Ken Foskey <kfoskey@xxxxxxxxxx>
- Date: Mon, 29 Aug 2011 11:56:04 +1000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=tpg.com.au; s=alpha; t=1314582966; bh=hh4gDoPvkrCUVbnkEPTbACrRzNA=; h=X-TPG-Abuse:Subject:From:To:Content-Type:Date:Message-ID: Mime-Version; b=DJqC3NnsDWF0FTi0/rfB/Q7hkHkQUNA7vJ3SphSITgsIGVZKqQ0j3uS4jcHiHpn2J rLi9vvSw61B6QkFAAo/odxnx7f5nPZKYX/KlAc1+2+qMDRs1ej4gJxQHL2hjXV8XEm F7x9FA2msouIEucd0Ifk1txfgrGru41DtprsYsJ8=
On Mon, 2011-08-29 at 10:04 +1000, DaZZa wrote:
> 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.
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.