Traditional log processing solutions often struggle to meet the requirements of distributed system in terms of scale and dynamism.Therefore,this study aims to design and implement a lightweight distributed log processing system.In this system,Promtail is responsible to collect logs from various sources.Loki provides efficient storage and querying capabilities,while Grafana offers an intuitive visualization interface.Compared to traditional system,this lightweight solution scheme has low resource consumption,excellent scalability and cost-effectiveness,making it suitable for log management and analysis scenarios of various scales and requirements.