Log4j Logging using Solr

It is very difficult for us to monitor the logs distributed across a cluster of four managed servers. So, I'm trying to create a simple log4j appender that uses solrj api to store logs on the solr server. The idea is to use the REST lever for solr to create a better GUI that can help us

  • find the logs and display the previous and next 50 lines or so and
  • tail of magazines

Being terrible at the front ends, I'm trying to come up with something using GWT (prototype version). I plan to host the project in googlecode under ASL.

I really appreciate if you could talk about

  • Is it possible to create such a project?
  • Uses Solr for this overkill?
  • Any suggestions on a web framework / tool to help me create a tail tab interface.
+4
source share
3 answers

You can use a combination of logstash (for shipping and filtering logs) + elasticsearch (for indexing and storage) + kibana (for a fairly graphical interface).

+3
source

False people also built logstash , which can be supported by quite a few things, including lucene through elastic search. It can also forward graylog.

+2
source

Completely doable thing. Many people made their own. Some useful links .. there is an online service, www.loggly.com, that does this. In fact, they are based on Solr as the primary storage system! Obviously, they created their own interface.

Another option is http://www.graylog2.org/ . This is open source. Not supported by Solrom, but still very cool!

0
source

Source: https://habr.com/ru/post/1341433/


All Articles