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 Debian/Ubuntu
  • Search

How clear access log and error log

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
mhh2
Posts: 14
Joined: Thu Jul 30, 2015 1:44 pm

How clear access log and error log
  • Quote

Post by mhh2 » Thu Jun 23, 2016 3:16 pm

Hi
Log of my server have big size, I want clear access log and error log in server, how do this?
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: How clear access log and error log
  • Quote

Post by Syeef » Thu Jun 23, 2016 4:00 pm

I always do it like this, for example:

Code: Select all

cat /dev/null > /var/log/exim/main.log
Don't know if there is any better way of achieving this, but it works.
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: How clear access log and error log
  • Quote

Post by tjebbeke » Thu Jun 23, 2016 8:35 pm

Maybe it's better to solve the errors in error log?

you can use
echo "" > /yourerrorlog
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How clear access log and error log
  • Quote

Post by skurudo » Wed Jul 27, 2016 12:27 pm

Or you can limit logs size:
viewtopic.php?t=8803#p29215
viewtopic.php?t=8803#p29216
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: How clear access log and error log
  • Quote

Post by mehargags » Wed Jul 27, 2016 2:00 pm

Big logs signify a problem... it is always important to check why log is bloating so much
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How clear access log and error log
  • Quote

Post by skurudo » Thu Jul 28, 2016 6:43 am

mehargags wrote:Big logs signify a problem... it is always important to check why log is bloating so much
Yes, but it also can tell about a large number of requests -- popularity, downloaders (site cloners), ddos :)
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • 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
 

 

Login  •  Register

I forgot my password