Answer the question
In order to leave comments, you need to log in
How to track logs?
There is a system that writes a couple of dozen different logs (plain text files in different places), and they are very helpful in identifying the causes of errors, but at the moment there is no way to know that an error has occurred, except by regularly viewing each of these files.
Surely the problem is universal, advise a tool for tracking log files so that the programmer can quickly find out about errors. Not only errors are written to the logs, but also debug|info|warning messages, and only error messages need to be traced.
Answer the question
In order to leave comments, you need to log in
First option.
Write not only to the log, but also connect https://rollbar.com/ . This thing solves a lot of issues and is especially easy to integrate if you have some kind of common framework. It also knows how to collect information from logs via https://github.com/rollbar/rollbar-agent
The second option.
https://www.elastic.co/products/logstash This is the industry standard. Able to read from a bunch of sources (supports both polling and push notifications), and can write to a bunch of outputs. Inside you can do various parsing and processing. Logstesh is not the only one, google for log collectors.
Third option.
Use cloud logging services https://www.loggly.com or https://logentries.com/
zabbix nagios etc etc..
monitor your logs for error lines and get notification graphics stats and other useful things
Simple as a board, and about as reliable as logcheck .
It grabs the specified logs, and sends everything that does not match the pattern (or vice versa) to the mail. Very easy, with some skills in drawing regexps quite flexible. In many cases, more is not needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question