S
S
Shirshov Alexander2015-12-29 12:05:02
linux
Shirshov Alexander, 2015-12-29 12:05:02

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

4 answer(s)
K
Kirill Mokevnin, 2015-12-29
@Keanor

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/

M
mikes, 2015-12-29
@mikes

zabbix nagios etc etc..
monitor your logs for error lines and get notification graphics stats and other useful things

M
Mystray, 2015-12-29
@Mystray

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.

F
falsebyte, 2015-12-30
@falsebyte

Zabbix
Simple, fast, free. Tracks everything!
And so that the programmer does not miss the error, there are notifications: mail, jabber, sms.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question