Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Disk Full Digitalocean vestacp var/log/httpd

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
zxcbew321
Posts: 3
Joined: Fri Sep 23, 2016 2:08 pm

Disk Full Digitalocean vestacp var/log/httpd
  • Quote

Post by zxcbew321 » Sat Sep 24, 2016 2:39 pm

I use a backup domain admin level auto-Saturday.

But there are some built-in web domain, but only 100mb log (keep 90 days) 3-4Gb any size (she asked, adding that Web traffic only. Over a thousand people per day, making it a very big log).


Image
Image

We can not have the backup of a log vestacp it.

Thank you
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Disk Full Digitalocean vestacp var/log/httpd
  • Quote

Post by tjebbeke » Mon Sep 26, 2016 6:57 am

If your logs are to big you can change your log rotation settings.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Disk Full Digitalocean vestacp var/log/httpd
  • Quote

Post by mehargags » Mon Sep 26, 2016 7:28 am

Big logs are an alarm, and you should focus on the CAUSE rather than rotating/deleting logs.

You also may have Verbose logging on your sites/apache/nginx so the logs are more detailed. Once one of my client updated his CakePHP based web app with "Debug mode on" which you usually do in Development mode. The log grew @ 10mb per second and filled the entire server drive in 10-12 hours.

Investigate your logs

# This will list logs greater than 20MB

Code: Select all

find /var/log -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' 
Then tail -f the biggest log to find what the logs are saying to identify the issue

# Delete logs older than 180 days

Code: Select all

find /var/log/ -type f -mtime +180 -delete
# Delete all .gz and rotated LOG files

Code: Select all

find /var/log -type f -regex ".*\.gz$" -delete
find /var/log -type f -regex ".*\.[0-9]$" -delete
Top

zxcbew321
Posts: 3
Joined: Fri Sep 23, 2016 2:08 pm

Re: Disk Full Digitalocean vestacp var/log/httpd
  • Quote

Post by zxcbew321 » Mon Sep 26, 2016 2:16 pm

thank you very much for your kind support
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password