Tagged articles
logrotate
47 articles · Page 1 of 1
This comprehensive guide covers Nginx log analysis techniques for identifying abnormal requests and attack sources, including custom log formats, command-line analysis with awk/grep/sort, attack pattern detection (CC, scanners, SQL injection), rate limiting and blocking configurations, log rotation, troubleshooting workflows, and production best practices.
Nginxattack-detectionawk
0 likes · 51 min read

This comprehensive guide dissects the Linux logging stack — kernel ring buffer, journald, rsyslog, logrotate, and service logs — with configuration details, command references, and five step-by-step troubleshooting cases covering SSH brute force, disk exhaustion, OOM kills, network packet loss, and systemd service failures.
LinuxLoggingObservability
0 likes · 47 min read

A production server hit 100% disk usage, prompting the author to use df, du and find to locate oversized log files, uncover missing rotation, excessive debug logging and a looping exception, then perform urgent cleanup and implement logrotate, log level adjustments, and Prometheus alerts to prevent recurrence.
Linuxdisk usagelog management
0 likes · 7 min read

This article narrates a step‑by‑step investigation of a sudden CPU load spike on a 24‑core e‑commerce web server, revealing an I/O bottleneck caused by misconfigured log rotation and excessive debug logging, and outlines the diagnostic commands, root‑cause analysis, immediate remediation, and long‑term fixes.
I/O BottleneckLinuxLoad Average
0 likes · 19 min read

This article explains why disk‑full issues cripple Linux servers, outlines the concepts of filesystem, LVM and inode space, and provides a step‑by‑step, layered method using df, du, find, lsof and logrotate to locate and safely free space, handle deleted‑but‑open files, clean logs, manage databases, temporary caches, Docker resources, and LVM volumes, and finally set up monitoring and preventive measures.
InodeLVMLinux
0 likes · 30 min read

This article provides a step‑by‑step, command‑driven methodology for identifying the five root causes of full disk space on Linux systems—block exhaustion, inode depletion, deleted‑but‑still‑held files, reserved space, and filesystem corruption—and offers concrete remediation techniques, automation scripts, and best‑practice recommendations.
InodeLVMLinux
0 likes · 55 min read

A step-by-step guide for handling disk space alerts: monitor with df, quickly locate large directories using ncdu or du+sort, safely clean logs with truncate instead of rm, automate cleanup via find and logrotate, and deploy two ready-to-use bash scripts for disk reporting and threshold alerting through cron.
bash scriptingcrondisk cleanup
0 likes · 15 min read

This article provides a step‑by‑step, production‑ready guide to building a complete Linux logging pipeline using rsyslog, systemd‑journald, and logrotate, covering architecture, configuration, performance tuning, security hardening, troubleshooting, monitoring, backup, and recovery for CentOS 7/8 and Ubuntu 20.04/22.04 environments.
Linuxjournaldlog management
0 likes · 54 min read

A comprehensive, step‑by‑step guide shows how to design, configure, and troubleshoot a robust Linux logging pipeline using rsyslog, systemd‑journald, and logrotate, covering log collection, storage, rotation, remote forwarding, performance tuning, security hardening, and disaster recovery for production environments.
Linuxjournaldlogrotate
0 likes · 54 min read

A senior cloud operations engineer receives a P1 alert for a web‑gateway server nearing 100% /var disk usage, then systematically logs in, diagnoses the log‑file bloat with df, du, and tail, truncates the offending debug log, and implements post‑mortem fixes to prevent recurrence.
Cloud OperationsLinuxP1 incident
0 likes · 10 min read

Learn how to achieve zero‑downtime Nginx log rotation using Logrotate, covering prerequisites, environment matrix, step‑by‑step configuration, compression strategies, advanced slicing, automated cleanup, monitoring, performance tuning, remote archiving, security hardening, and troubleshooting to ensure continuous logging without service interruption.
LinuxNginxlog management
0 likes · 30 min read

This guide walks through Linux log management, covering traditional rsyslog configuration, systemd‑journal settings, remote log server setup, secure log handling, and log rotation with logrotate, providing concrete commands, file paths, and practical examples for system administrators.
logrotatersyslogsyslog
0 likes · 13 min read

Learn how to configure and manage Linux logging services—including rsyslog and systemd‑journal—by understanding common log files, severity levels, log types, server setup, security settings, manual syslog transmission, journal analysis, persistent storage, and log rotation with logrotate to ensure reliable system monitoring.
log managementlogrotatersyslog
0 likes · 15 min read

This guide explains how Linux syslog collects system messages, details common log files and their purposes, describes syslogd, klogd, and logrotate services, shows log formats, configuration syntax, and provides step‑by‑step examples for setting up both log receivers and senders.
LinuxRHELlogrotate
0 likes · 16 min read

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.
LinuxLog RotationNginx
0 likes · 13 min read

This guide explains log management goals, special scenarios that cause uncontrolled log growth, and practical solutions using Linux's crontab for scheduled cleanup and the logrotate tool for automated rotation and retention across common services like MySQL, nginx, and Kafka.
Linuxcrontablogrotate
0 likes · 10 min read

This guide walks through Linux logging fundamentals, covering rsyslog service architecture, journald configuration, and logrotate management, while showing how to customize log destinations, use selectors and actions, forward logs over the network, and employ systemd timers for automated rotation.
Linux loggingjournaldlog management
0 likes · 23 min read

This guide explains the purpose of common Linux log files, how syslog and klogd collect system and kernel messages, the structure of syslog entries, configuration of /etc/rsyslog.conf for both receiving and forwarding logs, and how to manage log rotation with logrotate.
Linuxlogrotatersyslog
0 likes · 14 min read

This guide explains how to effectively manage application logs on Linux by defining log content and archiving rules, handling special scenarios like nohup, MySQL, and Nginx, and using tools such as crontab, logrotate, and copy‑truncate to prevent uncontrolled disk growth.
Linux Operationscrontablog management
0 likes · 9 min read

This guide explains Linux syslog fundamentals, common log file locations, their purposes, the roles of syslogd and klogd, how to configure rsyslog, set up log rotation with logrotate, and deploy a centralized log server for multiple hosts.
Linuxlogrotateoperations
0 likes · 15 min read

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.
Log RotationNginxlogrotate
0 likes · 13 min read

This guide explains how to effectively manage application logs on Linux by defining log content and archiving rules, handling special cases for services like MySQL and nginx, using crontab for scheduled cleanup, and configuring logrotate with detailed options and examples.
Linuxcrontablog management
0 likes · 11 min read

This guide explains how to define log management goals, handle special logging scenarios for services like MySQL and nginx, and implement automated cleanup using crontab and logrotate, including detailed configuration options and practical examples for reliable log rotation and storage control.
LinuxMySQLNginx
0 likes · 12 min read

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

This guide explains how to design effective log management by defining log content and archiving rules, handling special scenarios for services like nginx and MySQL, and using Linux tools such as crontab and logrotate to automate safe log rotation and cleanup.
Linuxcrontablog management
0 likes · 10 min read

This guide explains why nginx logs grow, introduces Logrotate as the Linux log‑management tool, walks through installation, core configuration, custom rotation rules, manual execution, compression options, time‑ and size‑based policies, hourly scheduling, and handling SELinux when rotating nginx logs.
Nginxcronlog management
0 likes · 17 min read

This article explains how to install Logrotate on Linux, configure it to rotate Nginx access and error logs by size, time, or frequency, demonstrates manual rotation commands, compares copytruncate and create options, and shows how to customize cron schedules and handle SELinux permissions.
cronlog managementlogrotate
0 likes · 15 min read

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.
LinuxLog Rotationcron
0 likes · 10 min read

This guide explains how logrotate automates log rotation, configures rotation intervals, size limits, compression, and post‑rotation scripts, helping you manage growing log files, conserve disk space, and maintain system performance on Linux servers.
LinuxLog Rotationcron
0 likes · 13 min read

This guide explains Docker container logging pitfalls, compares Kubernetes log collection levels, and presents a unified log‑aggregation architecture using S6‑based images, Filebeat, logrotate, Kafka, and Logstash, with practical steps for dynamic configuration and rotation.
DockerKubernetesS6
0 likes · 9 min read

This article explains Docker and Kubernetes logging challenges, compares logging drivers, and presents a unified, node‑agent based logging architecture using S6‑based containers, Filebeat, logrotate, Kafka, and Elasticsearch to achieve reliable, auto‑rotating log collection in production environments.
DockerLoggingS6
0 likes · 8 min read

This article explains the limitations of Docker's default JSON‑file logging, introduces S6‑based container log redirection, compares Kubernetes logging approaches at pod, node, and cluster levels, and presents a full‑stack architecture using Filebeat, Kafka, Elasticsearch, and Logstash for reliable, rotatable log collection.
DockerKubernetesLogging
0 likes · 8 min read

This guide explains how to use the built‑in Logrotate tool on Linux to configure automatic log rotation, customize rotation policies for services like Nginx, PHP and syslog, troubleshoot common issues, and replace ad‑hoc scripts with reliable, cron‑driven solutions.
Linuxlog managementlogrotate
0 likes · 23 min read

This article explains the limitations of Docker's default JSON‑file logging, compares logging drivers, introduces S6‑based log redirection to avoid daemon bottlenecks, and presents a Kubernetes‑wide log‑collection architecture using DaemonSets, Filebeat, Logrotate, Kafka, and Elasticsearch.
DockerKubernetesS6
0 likes · 7 min read

This article explains Docker and Kubernetes logging challenges, compares logging drivers, introduces S6‑based container logging, and presents a node‑level log‑agent architecture using Filebeat, Logrotate, Kafka, and Elasticsearch to achieve reliable, auto‑rotating log collection in production environments.
DockerKubernetesLogging
0 likes · 9 min read

This article explains the limitations of Docker‑based logging, compares logging drivers, and presents a Kubernetes‑wide log collection architecture that uses an S6‑based base image, Filebeat, logrotate, Kafka, and Elasticsearch to achieve reliable, scalable log aggregation.
DaemonSetKubernetesLogging
0 likes · 8 min read

This article explains Docker and Kubernetes logging challenges, compares engine and container logs, shows why the Docker daemon becomes a bottleneck, and demonstrates a scalable solution using S6‑based images, Filebeat, logrotate, and a node‑agent architecture to collect, rotate, and forward logs to Kafka and Elasticsearch.
KubernetesLoggingS6
0 likes · 8 min read

This article explains how to design and implement a unified log collection architecture for Docker containers and Kubernetes clusters using S6‑based images, Filebeat, logrotate, Kafka, Logstash, and Elasticsearch, addressing common challenges such as log rotation, daemon bottlenecks, and dynamic configuration.
DockerKubernetesLogging
0 likes · 9 min read

This article provides an in‑depth tutorial on using the Linux logrotate utility, covering default configuration files, command‑line options, example configurations for services like Nginx, PHP‑FPM, Tomcat, custom Bash and Python rotation scripts, troubleshooting tips, and how to adjust cron scheduling for automated log rotation.
Linuxcronlog management
0 likes · 21 min read

This article provides a comprehensive walkthrough of Logrotate on Linux, covering its purpose, default configuration files, key directives, practical examples for Nginx, PHP, Tomcat, and system logs, as well as custom shell and Python scripts for advanced log rotation and troubleshooting.
cronlog managementlogrotate
0 likes · 22 min read


ITPUBOct 10, 2020 · Operations
This article provides a thorough walkthrough of Linux logrotate, covering its default configuration files, essential command‑line options, key parameters, practical examples for services like nginx, php, and tomcat, custom rotation scripts, cron scheduling, and troubleshooting tips for reliable log management.
LinuxNginxcron
0 likes · 24 min read

This guide explains how to use Logrotate on Linux for automatic log file rotation, covering default configuration files, key options, example setups for Nginx, PHP, Tomcat, system logs, custom shell and Python scripts, cron scheduling, and troubleshooting techniques to ensure logs are rotated reliably.
LinuxNginxcron
0 likes · 23 min read

This article walks through common interview questions about removing log files, demonstrates safe recursive deletion with find, explains why deleted files may still occupy space when opened, shows how to identify and clean them using lsof, logrotate, and crontab, and clarifies the differences between soft and hard links.
Hard Linkfindlog-management
0 likes · 9 min read

This step‑by‑step guide shows how to diagnose exploding log files, configure logrotate with size‑based and time‑based rules, use cron jobs for frequent rotations, and apply options like copytruncate, delaycompress, and dateext to keep production systems healthy and storage under control.
cronlog managementlogrotate
0 likes · 29 min read


ITPUBJun 15, 2017 · Operations
This guide explains why logrotate is essential for Linux system security, details its default configuration files, shows how the cron‑based rotation works, lists key options, provides practical Nginx and custom rotation examples, and highlights the critical copytruncate option for seamless log handling.
automationlog managementlogrotate
0 likes · 12 min read

This guide explains how logrotate automatically truncates, compresses, and removes old log files, covering installation on major Linux distributions, essential configuration options, practical examples, and troubleshooting techniques to keep server storage under control.
Linuxcronlog management
0 likes · 10 min read

This guide explains how to use logrotate on Linux to automatically rotate, compress, and delete log files, covering installation, configuration examples for size‑based and time‑based rotation, and essential options to keep server storage under control.
automationlog managementlogrotate
0 likes · 6 min read
