Tag

log rotation

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Feb 22, 2025 · Operations

Master Log Rotation: Shell Scripts for Automated Nginx Log Splitting

This guide walks through why nginx logs need daily rotation, demonstrates manual log splitting, provides a complete shell script for automated daily log rotation, explains logrotate configuration, and shows how to test and schedule the process with cron, ensuring clean and manageable log files.

CronLinuxSystem Administration
0 likes · 13 min read
Master Log Rotation: Shell Scripts for Automated Nginx Log Splitting
Practical DevOps Architecture
Practical DevOps Architecture
Oct 24, 2024 · Operations

Shell Scripts for MySQL Database Backup and Nginx Daily Log Rotation

This article presents two Bash scripts that automate MySQL multi‑database backups with per‑table dumps and rotate Nginx access logs daily by moving them into month‑based directories and signaling Nginx to reopen its logs.

AutomationBackupMySQL
0 likes · 3 min read
Shell Scripts for MySQL Database Backup and Nginx Daily Log Rotation
Sohu Tech Products
Sohu Tech Products
Feb 21, 2024 · Operations

Troubleshooting and Recovery of ZooKeeper Election Port Failure in a Codis Cache Cluster

When adding a ZooKeeper observer to a Codis cache cluster, the election port (3888) was unreachable because the QuorumCnxManager listener thread vanished, prompting telnet and log checks, and leading to a successful recovery by rolling upgrade to ZooKeeper 3.4.13, rebuilding the data directory, performing a rolling restart, and decommissioning the temporary node, thereby restoring full cluster quorum and normal Codis‑Proxy operation.

Cluster RecoveryQuorumCnxManagerVersion Upgrade
0 likes · 10 min read
Troubleshooting and Recovery of ZooKeeper Election Port Failure in a Codis Cache Cluster
php中文网 Courses
php中文网 Courses
Dec 12, 2023 · Backend Development

Optimizing PHP Log Recording Performance

This article explains how to improve PHP logging performance by controlling log levels, batching writes, using asynchronous processes, and implementing log rotation, providing clear code examples for each technique in real-world PHP applications.

LoggingPHPPerformance
0 likes · 5 min read
Optimizing PHP Log Recording Performance
Efficient Ops
Efficient Ops
Jan 16, 2023 · Operations

Master Log Rotation with logrotate: Keep Your Servers Clean and Efficient

This guide explains how logrotate automates log rotation, detailing its configuration files, common directives such as rotate, daily, size, compress, postrotate, and sharedscripts, and provides practical examples for managing large log files efficiently on Linux servers.

CronLinuxSystem Administration
0 likes · 10 min read
Master Log Rotation with logrotate: Keep Your Servers Clean and Efficient
Python Programming Learning Circle
Python Programming Learning Circle
Nov 22, 2021 · Operations

Debugging Supervisor Log Rotation Issues on Linux

This article explains how to troubleshoot fragmented log files caused by the Supervisor process manager on Linux, covering configuration details, log‑rotation constraints, diagnostic commands, and the eventual resolution by restarting the supervisord service.

LinuxPythonSupervisor
0 likes · 5 min read
Debugging Supervisor Log Rotation Issues on Linux
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 21, 2021 · Databases

Diagnosing a MongoDB Shard Connection Storm that Caused Replication Lag and Automatic Failover

The article details a MongoDB 3.4 sharded cluster incident where a sudden connection storm overwhelmed the primary, leading to replication lag, automatic failover, and how monitoring, log analysis with mtools, and a custom log‑rotation script were used to diagnose and resolve the issue.

Connection StormDatabase MonitoringMongoDB
0 likes · 8 min read
Diagnosing a MongoDB Shard Connection Storm that Caused Replication Lag and Automatic Failover
Efficient Ops
Efficient Ops
Oct 27, 2019 · Operations

Why Did My MongoDB Logs Turn Into PCX Images? Investigation and Fix

A MongoDB shard node’s logs unexpectedly turned into PCX image files due to improper log rotation using echo, causing CPU spikes and slow‑query analysis failures; the investigation reproduces the issue, explains the header corruption, and presents a SIGUSR1‑based solution to restore proper ASCII logs and retrieve the needed time‑range data.

MongoDBOperationsPCX
0 likes · 18 min read
Why Did My MongoDB Logs Turn Into PCX Images? Investigation and Fix
Practical DevOps Architecture
Practical DevOps Architecture
Feb 18, 2019 · Backend Development

Comprehensive Guide to Nginx Optimization, Modules, Load‑Balancing Algorithms, Log Management, Custom Error Pages, and Comparison with Apache and LVS

This article presents a detailed overview of Nginx performance optimizations, module types, load‑balancing algorithms, log rotation scripting, custom error page setup, smooth restart procedures, configuration checks, and a comparative analysis with Apache and LVS for backend server administrators.

ConfigurationLoad BalancingOptimization
0 likes · 9 min read
Comprehensive Guide to Nginx Optimization, Modules, Load‑Balancing Algorithms, Log Management, Custom Error Pages, and Comparison with Apache and LVS
Qunar Tech Salon
Qunar Tech Salon
May 24, 2015 · Operations

Understanding Filesystem Cache and Log Rotation with top, lsof, and Compression

The article explains how the Linux top command reveals filesystem cache usage, why large log files can waste cache memory, and proposes hourly log rotation with compression, using lsof to identify cached files and tools like zless to view compressed logs.

Filesystem CacheLinuxOperations
0 likes · 6 min read
Understanding Filesystem Cache and Log Rotation with top, lsof, and Compression
Qunar Tech Salon
Qunar Tech Salon
May 23, 2015 · Operations

How to Follow Log Files and Handle Log Rotation with tail

This article explains how to use the Linux tail command to monitor log files in real time, filter errors, and reliably continue following logs after rotation by using the -F option, providing practical guidance for system administrators and developers.

LinuxLog MonitoringOperations
0 likes · 2 min read
How to Follow Log Files and Handle Log Rotation with tail