June 10, 2025

Enhancing Centralised Log Management for Distributed WordPress Sites

Overview

WordPress powers over 40% of websites on the internet, making it the most popular content management system in the world. However, for developers and companies managing multiple WordPress sites, especially in distributed environments, monitoring and maintaining these sites can become difficult.

WordPressโ€™s built-in logging tools are basic and do not provide the level of visibility or control needed when issues occur across different servers or locations. In my research project, I explored how the ELK Stack (Elasticsearch, Logstash, and Kibana) can help solve this problem by creating a centralised logging and monitoring system.


๐Ÿ” Research Aim

The aim of my thesis was to find out how the ELK Stack can improve log collection, system monitoring, plugin update tracking, and performance analysis for distributed WordPress environments.


โš™๏ธ What is the ELK Stack?

  • Elasticsearch โ€“ A search and analytics engine used to store and query log data.
  • Logstash โ€“ A tool that collects, processes, and forwards logs from various sources.
  • Kibana โ€“ A dashboard that visualizes logs and helps monitor metrics in real time.

Together, these tools allow developers to see everything that happens across all WordPress sites in one central place.


๐Ÿ”ง What I Did in My Project

  • Set up multiple WordPress websites in a distributed architecture (on separate virtual machines or containers).
  • Installed and configured the ELK Stack to collect logs from each site.
  • Created dashboards in Kibana to monitor logins, plugin activities, errors, and server usage.
  • Simulated common issues like failed logins and plugin crashes to test how quickly they could be detected.
  • Evaluated how this setup improves site maintenance, security, and efficiency.

๐Ÿ“ˆ Key Results and Benefits

  • โœ… Faster detection of errors and unusual activities
  • โœ… Centralised monitoring of plugin updates and version mismatches
  • โœ… Real-time performance tracking across all sites
  • โœ… Easier troubleshooting and quicker response to problems
  • โœ… Better resource usage analysis (e.g., CPU, memory, traffic)

With the ELK Stack, managing multiple WordPress sites became simpler, smarter, and more secure.


๐Ÿง  Why This Matters

Many developers face challenges in managing logs from multiple websites, especially when using shared hosting, cloud instances, or Docker containers. This research shows that centralised log management using ELK is a powerful solution for WordPress site administrators and developers who want to improve their workflows.


๐Ÿ‘จโ€๐Ÿ’ป Real-World Experience

This research is closely connected to my real work experience. During my studies, I also developed and maintained several websites, including:

This practical background helped me apply theoretical knowledge in a meaningful way and produce results that can be used in real-world projects.


๐Ÿ”ฎ Future Potential

This project could be extended to include:

  • Automated alerts via email or Slack when issues are detected
  • Integration with cloud platforms like AWS CloudWatch or Azure Monitor
  • Scalability testing with large WordPress multisite networks

๐Ÿ“ธ Screenshots of this project

ELK Stack Architecture Diagram
ELK Stack Architecture Diagram
The demo sites were used by Kadence theme
Logs were shown in Kibana dashboard
Dashboard of the user activity logs
Dashboard of the servers performance
Rules are easily be configured to trigger warning message
Alert email was successful delivered

๐Ÿ“… Project Duration

The project took place over a four-month period and involved hands-on setup, testing, evaluation, and reporting.

The thesis can be read here: https://techiecorner.net/wp-content/uploads/2025/06/Enhancing-Centralised-Log-Management-for-Distributed-WordPress-Sites-with-ELK-Stack-Jigang-Guo_22400483.pdf

The address of the source code is: https://github.com/jigangmissyou/arp