java - How to manage logs in a unified manner after tomcat cluster?
滿天的星座2017-06-12 09:24:37
0
5
974
How to manage the logs of each node in a unified manner after clustering? For example, if a certain function reports an error, you need to go to each node to check the log. This is too troublesome. How is it usually managed?
Distributed open source log analysis system under Google, you can refer to other people's implementation. The overall idea should be: a distributed queue, log collection + log search engine + graphical interface display
Our company chose to rewrite log4j
There is one log file every day, and the analysis is done through merging. It is not recommended to unify all logs on one server.
You should check the error log, and there are not many error logs. Do not keep error logs and normal logs together.
elk stack!
Distributed open source log analysis system under Google, you can refer to other people's implementation.
The overall idea should be: a distributed queue, log collection + log search engine + graphical interface display
elk stack!