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

Error Logs

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Error Logs
  • Quote

Post by pandabb » Tue Aug 18, 2015 10:15 am

Hi guys, how do i clear or delete the access logs and errror logs , to start fresh.

thanks
Top

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

Re: Error Logs
  • Quote

Post by skurudo » Tue Aug 18, 2015 2:05 pm

Like this:

Code: Select all

cat /dev/null > logfile
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Error Logs
  • Quote

Post by pandabb » Tue Aug 18, 2015 6:25 pm

Thanks again and again!

----
update:

I tried it but when i access my Vesta Control Panel > Web > View Logs > Logs are still there, i want to delete those logs.

Do you think i need to input the correct path in order to delete those logs?
Top

augustine_10
Posts: 14
Joined: Sat Jan 17, 2015 6:50 am

Re: Error Logs
  • Quote

Post by augustine_10 » Tue Aug 18, 2015 8:42 pm

Web site logs will be in /var/log/httpd/domains/ (Centos)


Use below command

---
> full log path

or

cat /dev/null > logfile

---
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Error Logs
  • Quote

Post by pandabb » Thu Aug 20, 2015 4:00 am

Thanks got it working. cat /dev/null > worksfine.
Top

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

Re: Error Logs
  • Quote

Post by skurudo » Thu Aug 20, 2015 11:32 am

pandabb wrote:Thanks got it working. cat /dev/null > worksfine.
Nice! ^_^

But there is a way to limit logs -> viewtopic.php?f=11&t=8884&p=29604#p29604
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Error Logs
  • Quote

Post by pandabb » Thu Aug 20, 2015 11:59 am

Thanks problem solved! :)
Top

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

Re: Error Logs
  • Quote

Post by skurudo » Thu Aug 20, 2015 1:18 pm

pandabb wrote:Thanks problem solved! :)
Ok then ;-)
Top


Post Reply
  • Print view

8 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