Answered by the Webhosting Experts
Tags +

Linux
Managed Services

Just Leave Linux to Us
Is maintaining your Linux server keeping your team bogged down? Alleviate unnecessary stress with one of Hivelocity’s Linux Managed Services plans. With reboots, monitoring, updates, and more, your team can rest easy knowing your hardware and OS are in the hands of hosting experts.

Configure your server today and see the benefits a Hivelocity managed Linux solution can offer you!

Tags +
Tags
...
...
160x600_hivelocity_dec20

How to Manage Large Log Files?

When the system log file increases it means that there is some issue associated software or applications. In that case simply check the latest activities in the system log file.

For that login to your server and execute the following command:

tail /var/log/logfile-name

If the issue is not encountered from the latest activities, you can go through the complete log file for hints:

less /var/log/logfile-name

If the same issue is repeating, search for the repeated messages in the log file. Most of the time, its an error message, but can also be a warning to disable something by which its causing. Sometimes, it may be an intrusion attack, which you can check in to the security log file.

Once the problem is encountered, fix it and clear the log file and start with an empty one. Continuing the same large log file will consume much space. Enter the following command:

logrotate -v -f /etc/logrotate.d/logname

The above command will archive the old log file, and creates a new empty log file for further use.

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.

Watch our servers in their natural habitat

Click here to see more live streams or take a tour of our facilities.

Linux
Managed Services

Just Leave Linux to Us
Is maintaining your Linux server keeping your team bogged down? Alleviate unnecessary stress with one of Hivelocity’s Linux Managed Services plans. With reboots, monitoring, updates, and more, your team can rest easy knowing your hardware and OS are in the hands of hosting experts.

Configure your server today and see the benefits a Hivelocity managed Linux solution can offer you!