Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been using BareTail for low-footprint log reading, and it works wonderfully. In particular, I like that it can consume very large large files, detect changes to those files, all without consuming much memory at all.

I'd like to know if there are applications out there -- flash, java applet, etc -- that I could use in a web page to mimic this functionality in a program I'm writing.

What I hope to achieve is the ability to consume log files on a server inside the firewall and display them on a web page, in a semi-streaming fashion. As I said, I'd essentially like to have BareTail in a browser

share|improve this question

closed as primarily opinion-based by Bryan, kce, Nathan C, freiheit, Jenny D Jul 7 '13 at 8:39

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

7 Answers 7

clarity is a newer project which does this and looks promising.

share|improve this answer

Check vsConsole http://www.vamonossoftware.com/vsconsole

share|improve this answer
    
vsConsole 2.0.3-snapshot is available now, which adds features requested from users. docs.google.com/folder/d/0B9pO6BCz4ndtVl90NDJQdUtvNTQ/… –  prule Sep 23 '12 at 0:49

Tailon is a simplistic web interface to tail -f and tail -f | {grep,awk,sed}. In this regard, it is very similar to clarity (I wrote tailon as a safer and more modern alternative to clarity). Log.io is another modern log file viewer that fits your description.

share|improve this answer
1  
Log.io looks good if you're into node.js but the url is logio.org but SO won't let me edit the link in the answer –  Daniel Skinner Feb 22 at 23:02

The simplest and most common way to send discrete items of news to a browser is an RSS feed. A javascript feed parser should sort it out. Or just use an aggregator server-side. Depends on your exact needs really; you'd be better posting a description of what you're trying to achieve, rather than how you think you'll achieve it.

Edit: thanks for the update. For what you want, I'd suggest using something like rsyslog to log into a mysql database, and then just having a php script to query the latest records, and print them, generating an HTML or RSS file. rsyslog should maintain the database nicely (maybe with the help of cron jobs), and any decent distro will have packages which sets most of this up for you.

share|improve this answer
    
"what i'm trying to achieve" added. thanks. –  marc esher Oct 29 '09 at 23:25
    
thanks for the thoughts, Lee. I'm sure I could whip up a program myself to do this without much fuss. I was really looking for pre-built, drop-in solutions if they existed. I'm finding though that such an application probably does not exist, and I'll need to roll one. –  marc esher Oct 30 '09 at 21:49

If you are interested in security monitoring of your web logs, I would certainly recommend OSSEC ( http://www.ossec.net ). You can use their web interface to see the alerts live via web.

share|improve this answer

I needed something like this a couple years back, and didn't find anything that fit well. I ended up writing a simple AJAX loop on the client requesting data including a token from the previous response and appending it to the page. This was paired with a script on the server returning data starting from the file position determined by that token.

share|improve this answer

If you report to syslog, the Centreon syslog module will do what you want.

Splunk also provides a web interface.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.