Skip to content

managingwp/enhance-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

enhance-plus

This repository is a collection of scripts and tools to help manage the enhance platform. It is not an official part of the enhance platform, but rather a collection of tools that have been developed to help manage the platform.

log-capture

Retain and rotate web server log files on the enhance platform. Why? If a site is attacked or there is a sudden change in resource usage, the web server logs can be invaluable in diagnosing the issue.

  • Utilizes systemd and a bash script with inotifywait to capture logs before they're truncated to /var/log/webserver_logs
  • Utilizes logrotate to compress and move logs to /var/log/webserver_logs_archive

Caveats/Issues

  • Some logs entries might be missed due to the log file being rotated.
  • The log entries might be out of order.

Install

This is an example install. You will want to be logged in as root.

  1. mkdir -p $HOME/bin;cd $HOME/bin
  2. git clone https://github.com/managingwp/enhance-log-capture.git
  3. cd enhance-log-capture
  4. ./install.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages