Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logstash log tail in browser

So I setup Logstash 1.4.2 with ElasticSearch and Kibana using logstash-forwarder(lumberjack) and thats working pretty well but I also wanted to show just a raw log output(maybe searchable) via a browser similar to something like papertrail?

Is this possible, thanks!

like image 690
arduima Avatar asked Feb 09 '15 19:02

arduima


3 Answers

In the discover view, in the top-right corner, there is a play (triangle) button. Press that and your log output should periodically update (default every 10 seconds for me).

enter image description here

like image 62
Zoltán Avatar answered Oct 18 '22 15:10

Zoltán


Checkout my new Kibana plugin LogTrail, that supports live tail, search and option seek to a particular time in logs in console like GUI.

enter image description here

like image 29
avis Avatar answered Oct 18 '22 14:10

avis


There are command line utilities that can tail or query logs stored in elasticsearch. While they're not web based, they may achieve what you need.

  • EsTail: https://github.com/ElasticSearchCLITools/esTail

To tail the logs using EsTail issue the following command:

node ./esTail.js --url=localhost:9200 --index=logstash*
  • Elktail: https://github.com/knes1/elktail

To tail the logs using Elktail issue the following command:

elktail --url localhost:9200

More info on Elktail can be found in blogpost here.

Disclaimer: I'm author of Elktail

like image 20
Krešimir Nesek Avatar answered Oct 18 '22 13:10

Krešimir Nesek