How to log the laravel under the distributed architecture? Synchronize

now there are multiple servers + a web server deployed by load balancer. The same laravel code runs on each server, and each day generates different log files to the storage folder of their respective server. How to make them Synchronize? then every time I access the logs on all servers through the route of log-viewer plug-in

Mar.07,2021

just set up a log service on a server. Just write all the distributed logs into it, and then put a server's ip or number on each log to know which server has logs


    .
  1. configure NFS and mount logs from other servers to the same server
  2. build a distributed log collection system (scribe, chukwa, kafka, flume, etc.)

look at ELK


  • NFS mount
  • distributed log system (such as Aliyun has this service)
Menu