Loki2 AWS EC2 Log Monitoring with Loki, Promtail, and Grafana Monitoring logs in real time is essential for any production system. Instead of the heavy ELK stack, I opted for a lightweight alternative: Loki + Promtail + Grafana. In this post, I’ll share how I built a working log pipeline on an AWS EC2 server from scratch.✨ Why Loki, not ELK?LightweightEasy to set upIntegrates well with Grafana (which we already use)Loki by Grafana Labs, paired with Promtai.. 2025. 7. 14. EC2에 Promtail + Loki + Grafana로 로그 수집 파이프라인 구축기 AWS EC2에서 운영 중인 서버의 로그를 효율적으로 수집하고 모니터링하기 위해 Promtail, Loki, Grafana를 직접 설치하고 구성해본 경험을 공유합니다.✨ 도입 배경로그를 실시간으로 수집하고 검색 가능한 형태로 저장하고 싶었습니다. 하지만 ELK 스택은 무겁고 복잡하게 느껴졌고, Grafana Labs에서 만든 Loki + Promtail 조합이 더 가볍고 설정도 쉬워 보여 선택했습니다. ⚖️ 구성도[EC2 서버 로그] → Promtail → Loki → GrafanaPromtail: EC2 내에서 로그 파일을 수집하는 역할 (tail)Loki: 수집된 로그를 저장/검색 가능하게 하는 백엔드Grafana: Loki에 저장된 로그를 시각화/검색하는 UI📁 Promtail 설치 및 설정1. .. 2025. 7. 10. 이전 1 다음