Home  >  Q&A  >  body text

java - How to manage logs in a unified manner after tomcat cluster?

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?

滿天的星座滿天的星座2686 days ago934

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-06-12 09:26:37

    Our company chose to rewrite log4j

    reply
    0
  • 三叔

    三叔2017-06-12 09:26:37

    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.

    A function reported an error

    You should check the error log, and there are not many error logs. Do not keep error logs and normal logs together.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-06-12 09:26:37

    elk stack!

    reply
    0
  • 为情所困

    为情所困2017-06-12 09:26:37

    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

    reply
    0
  • 阿神

    阿神2017-06-12 09:26:37

    elk stack!

    reply
    0
  • Cancelreply