This document discusses logging best practices and tools for log centralization and analysis. It recommends:
1. Using Monolog for PHP logging to centralize logs from application code in a standardized format. Monolog supports multiple handlers for storage and alerts.
2. Leveraging Rsyslog to also centrally collect logs from software, services and the operating system. Rsyslog can scale across servers.
3. Ingesting logs into Logstash for filtering, parsing and forwarding. Logstash supports many input sources and output targets.
4. Storing logs long-term in Graylog2 for powerful searching, analytics, dashboards and alerting. Graylog2 is highly scalable and easy to use.