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.

  • 1 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...