Error Logs
Error Logs
Hi guys, how do i clear or delete the access logs and errror logs , to start fresh.
thanks
thanks
Re: Error Logs
Like this:
Code: Select all
cat /dev/null > logfile
Re: Error Logs
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?
----
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?
-
- Posts: 14
- Joined: Sat Jan 17, 2015 6:50 am
Re: Error Logs
Web site logs will be in /var/log/httpd/domains/ (Centos)
Use below command
---
> full log path
or
cat /dev/null > logfile
---
Use below command
---
> full log path
or
cat /dev/null > logfile
---
Re: Error Logs
Thanks got it working. cat /dev/null > worksfine.
Re: Error Logs
Nice! ^_^pandabb wrote:Thanks got it working. cat /dev/null > worksfine.
But there is a way to limit logs -> viewtopic.php?f=11&t=8884&p=29604#p29604
Re: Error Logs
Ok then ;-)pandabb wrote:Thanks problem solved! :)