Tagged articles
26 articles
Page 1 of 1
Raymond Ops
Raymond Ops
Nov 8, 2025 · Operations

Mastering journalctl: Persistent Systemd Log Management and Cleanup

This guide explains how to use systemd's journalctl for reading, configuring persistent storage, limiting log size, setting up automatic cleanup, and verifying integrity of Linux logs, providing practical commands and configuration snippets for reliable log management.

Log Managementjournalctljournalctl commands
0 likes · 9 min read
Mastering journalctl: Persistent Systemd Log Management and Cleanup
Raymond Ops
Raymond Ops
Jul 16, 2025 · Operations

Master Nginx Access & Error Logs: Config, Custom Formats, Auto Rotation

This guide explains how Nginx’s access_log and error_log work, details the log_format directive for customizing access logs, shows how to configure log paths, formats, buffering, compression, and conditional logging, and provides a Bash script with a cron job to automatically rotate daily log files.

Access LogNginxerror log
0 likes · 7 min read
Master Nginx Access & Error Logs: Config, Custom Formats, Auto Rotation
Alibaba Cloud Observability
Alibaba Cloud Observability
Jun 24, 2025 · Operations

Avoid These 6 Log Management Anti‑Patterns to Keep Your Observability Reliable

This article examines common log‑management anti‑patterns—such as copy‑truncate rotation, NAS storage, multi‑process writes, file‑hole creation, frequent overwrites, and Vim edits—explains why they cause data loss or duplicate collection, and offers practical best‑practice recommendations for reliable log handling in cloud‑native environments.

Anti-PatternsObservabilityOperations
0 likes · 8 min read
Avoid These 6 Log Management Anti‑Patterns to Keep Your Observability Reliable
Alibaba Cloud Native
Alibaba Cloud Native
Jun 18, 2025 · Operations

Avoid These 6 Log Management Anti‑Patterns to Keep Your Cloud‑Native Systems Reliable

Effective log management is crucial for cloud‑native observability, yet common practices like copy‑truncate rotation, NAS storage, multi‑process writes, file‑hole creation, frequent overwrites, and vim edits can cause data loss or duplicate collection; adopting create‑mode rotation, local disks, append‑only writes, and proper tools mitigates these risks.

Cloud NativeLog ManagementOperations
0 likes · 10 min read
Avoid These 6 Log Management Anti‑Patterns to Keep Your Cloud‑Native Systems Reliable
Lin is Dream
Lin is Dream
May 7, 2025 · Operations

How to Prevent Nginx Log Overgrowth with Automated Log Splitting

This guide explains why default Nginx logging can fill disks, then walks through disabling logging, clearing old files, re‑enabling logging, using a shell script to rotate logs by date, and scheduling the script with cron to keep server storage healthy.

log rotationserver operations
0 likes · 5 min read
How to Prevent Nginx Log Overgrowth with Automated Log Splitting
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.

Nginxcronlinux
0 likes · 13 min read
Master Log Rotation: Shell Scripts for Automated Nginx Log Splitting
Liangxu Linux
Liangxu Linux
Jun 12, 2024 · Operations

How to Rotate Nginx Logs with Shell Scripts and Logrotate

This guide explains why nginx logs need regular rotation, shows how to manually split logs using a shell script that backs up, renames, and signals nginx to reopen log files, and demonstrates configuring and testing the logrotate utility for automated daily log rotation and compression.

NginxSystem Administrationlog rotation
0 likes · 13 min read
How to Rotate Nginx Logs with Shell Scripts and Logrotate
MaGe Linux Operations
MaGe Linux Operations
May 1, 2024 · Operations

How to Automate Nginx Log Rotation with Shell Scripts and Logrotate

This guide explains why nginx logs need regular rotation, demonstrates manual log backup and rotation using shell commands, provides a complete Bash script for daily log splitting, and shows how to configure and use the logrotate tool for automated, compressed log management.

log rotationlogrotateshell script
0 likes · 13 min read
How to Automate Nginx Log Rotation with Shell Scripts and Logrotate
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.

Backenderror logfile_put_contents
0 likes · 5 min read
Optimizing PHP Log Recording Performance
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.

MongoDBPCXSIGUSR1
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.

Backend ServerConfigurationNginx
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 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.

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