real time display of log files - any other ideas?
real time display of log files - any other ideas?
(OP)
I read thread452-566155 re displaying log files in near real time. That thread uses tail (linux) and perl/html forcing the web page to refresh.
Ive got a number of different jobs reading a syslog alarm log file - would like it to be viewable from any other pc on the LAN so I can keep an eye on events via a web browser.
I also update icons on a main alarm web page using javascript/perl also using this heavy refresh technique - need to move to more advanced methods.
Does anyone have any alternatives to this to do this smoother i.e. using java (tcp/udp updates) that uses a stream or other techniques??
Any comments welcome.
Ive got a number of different jobs reading a syslog alarm log file - would like it to be viewable from any other pc on the LAN so I can keep an eye on events via a web browser.
I also update icons on a main alarm web page using javascript/perl also using this heavy refresh technique - need to move to more advanced methods.
Does anyone have any alternatives to this to do this smoother i.e. using java (tcp/udp updates) that uses a stream or other techniques??
Any comments welcome.
RE: real time display of log files - any other ideas?
Use server-push :
CODE
echo -e "Content-type: text/html\n"
cat <<EOT
<html>
<body>
<pre>
EOT
tail -f "/path/to/log"
I wrote a bash script just because it is more clear.
Feherke.
http://rootshell.be/~feherke/