Linux Log File Management for Application Services

Linux Log File Management for Application Services

Recently, a machine in one of our company’s factories has been frequently alarming due to low disk space. Upon investigation, it was found that this was a test machine for the MES service provided by a vendor, which had a complete set of testing services built on it. The vendor’s Spring Boot application outputs logs … Read more

10 Things You Can Do When Your Linux Server Disk is Full, Beyond rm -rf

10 Things You Can Do When Your Linux Server Disk is Full, Beyond rm -rf

At three in the morning, my phone alarm shattered the night. The screen glaringly displayed: “Production environment server disk usage at 95%”. My heart skipped a beat as I trembled to connect to the VPN and typed df -h, confirming that terrifying red warning. My instinctive reaction was to delete some seemingly unimportant log files … Read more

Linux Log Management

Linux Log Management

Linux Log Management In Linux systems, log management is a core component of system operations and maintenance. It records the system’s operational status, error messages, user activities, and security events, helping administrators diagnose issues, optimize performance, and ensure compliance. According to a survey by Red Hat, over 80% of Linux failures can be quickly pinpointed … Read more

Linux Operations Practice: A Comprehensive Guide to Preventing Disk Full Logs from Multiple Dimensions

Linux Operations Practice: A Comprehensive Guide to Preventing Disk Full Logs from Multiple Dimensions

In the Linux server operation and maintenance system, log files serve as a “barometer” of the system’s operational status, recording key information such as service start and stop, error troubleshooting, and user operations. However, the continuous generation and unordered accumulation of logs can often consume a significant amount of disk space. Therefore, establishing a log … Read more

Common Linux Commands – Part 4

Common Linux Commands - Part 4

Common Linux Commands – Part 4 4. Log Directory /var/log # Main log directory, /var/log/secure # Logs related to user login security, a large file indicates someone is attempting to crack passwordscat /var/log/secure | grep login # Search for login-related strings in the secure file/etc/ssh/sshd_config # Modify this file to enable passwordless loginid_rsa.pub # Public … Read more

Real Linux Troubleshooting Scenarios: Log Server and Log File Configuration and Management

Real Linux Troubleshooting Scenarios: Log Server and Log File Configuration and Management

Scenario 284: Unable to Access Log Server Troubleshooting Steps: Verify network connection: ping log_server_ip Check firewall settings on both systems: systemctl status firewalld firewall-cmd –list-all Ensure the log server service is running: systemctl status rsyslog Scenario 285: Excessive Log Volume Troubleshooting Steps: Identify growing log files: du -h /var/log Analyze the contents of large log … Read more

Summary of Linux Log Management Experience (crontab + logrotate)

Summary of Linux Log Management Experience (crontab + logrotate)

Click the "Linux Tech Enthusiast" above and select "Set as Star" to receive high-quality articles promptly. ☞【Insight】ChatGPT 4.0 is unlocked, no limit on questions!!! ☞【Insight】Tsinghua University senior's self-study Linux notes, top-level quality! ☞【Insight】Comprehensive guide to commonly used Linux commands, all in one article. ☞【Insight】Collection! Linux basic to advanced learning roadmap. Link: https://www.cnblogs.com/xiaoyaozhe/p/17671275.html Log Management Objectives … Read more