L
L
l4m3r2019-04-01 17:09:36
System administration
l4m3r, 2019-04-01 17:09:36

How to conveniently manage logging?

The programs I need (nginx, php-fpm, php-cli, redis, mariadb, ...) on the production server create a bunch of logs in /var/log. Plus the web application logs themselves.
How are they usually used?
1. Simply log in to the server as problems arise, open the corresponding log file and not worry.
2. Or are there any convenient tools that collect information from the logs I need in a beautiful format, and I watch them from a remote computer from some client application.
3. Or is it possible to somehow redirect them to redis? How then to set the correct path like access_log=????.
Of course, everything is possible in syslog, but something, it seems to me, is not done this way. In general, how to make Beautiful? :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hOtRush, 2019-04-01
@l4m3r

https://www.elastic.co/elk-stack

S
Sergey Ryzhkin, 2019-04-01
@Franciz

Here you can try to configure yourself: How to install and configure Elasticsearch, Logstash...

D
Dmitry Dart, 2017-01-16
@game802

If you insert in preg_replace to delete something like this https://www.regex101.com/r/jFfVQq/1 (left the .zip extension)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question