S
S
Splite2014-03-12 23:33:25
ruby
Splite, 2014-03-12 23:33:25

Correct architecture - how to implement the output of real-time logs on the web?

Hello! There is a certain program that constantly writes logs in real time. The logs are read from STDOUT and written to a file by the Ruby daemon.
Please advise how to correctly implement real-time (well, delays of 5-10 seconds are allowed) the output of these logs in the web interface

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Z
zxmd, 2014-03-12
@Splite

Through the websocket of course.

I
Ivan Starkov, 2014-03-13
@icelaba

Grab Logstash + Kibana solution
www.elasticsearch.org/overview/kibana

A
Andrey Degtyaruk, 2014-03-13
@hlogeon

You can just as easily make a method on the server that will read the log file, and make an AJAX request to this method on the page. But ready-made solutions, of course, are better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question