Page 1 of 1
Error Logs
Posted: Tue Aug 18, 2015 10:15 am
by pandabb
Hi guys, how do i clear or delete the access logs and errror logs , to start fresh.
thanks
Re: Error Logs
Posted: Tue Aug 18, 2015 2:05 pm
by skurudo
Re: Error Logs
Posted: Tue Aug 18, 2015 6:25 pm
by pandabb
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?
Re: Error Logs
Posted: Tue Aug 18, 2015 8:42 pm
by augustine_10
Web site logs will be in /var/log/httpd/domains/ (Centos)
Use below command
---
> full log path
or
cat /dev/null > logfile
---
Re: Error Logs
Posted: Thu Aug 20, 2015 4:00 am
by pandabb
Thanks got it working. cat /dev/null > worksfine.
Re: Error Logs
Posted: Thu Aug 20, 2015 11:32 am
by skurudo
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
Re: Error Logs
Posted: Thu Aug 20, 2015 11:59 am
by pandabb
Thanks problem solved! :)
Re: Error Logs
Posted: Thu Aug 20, 2015 1:18 pm
by skurudo
pandabb wrote:Thanks problem solved! :)
Ok then ;-)