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)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e53594-6583f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e53594-6583f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?