January 4, 2011

[SOLVED] Share log via Browser

This guide assumes you have a remote server, called loghost.example.org that you are going to use to avoid any firewall issues.

First make sure you have netcat-openbsd and NOT netcat traditional installed.
sudo apt-get install netcat-openbsd

Then to ensure your system is working try the following basic netcat tip.

Now to share my logging output I run on my laptop:
tail -f /var/log/syslog | ssh loghost "nc -v -l 8000"

Now to share my log with a remote collegue, he simply runs:
curl http://loghost.example.org.org:8000

or http://loghost.example.org:8000 in a browser

Source: dabase.com

No comments:

Post a Comment