Page 1 of 1
error_log-20120614.bz2 (apache2 error logs)
Posted:
Thu Jun 14, 2012 2:33 pm
by richardroi
Hello support,
Kindly give some information about this error log on apache2. How can i open it so i can see whats wrong. I already checked my timezone. I can see these errors starting the day i put the server on production, and I'm afraid it is consuming lots of space on my hard drive. And when this bz2 ran it consumes 95% of cpu.
How can I correct this?
Thank you.
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Fri Jun 15, 2012 4:46 am
by DomeDan
you can do that with:
bzcat error_log-20120614.bz2 | less
pipe to less to be able to use page up and down and so on
and the one that is not compressed:
cat error_log | less
I guess it will use a lot of cpu-power when it runs, but it will probably not run for very long
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Fri Jun 15, 2012 11:51 am
by richardroi
Thanks Domedan.
Can I erase this errors.bz2? How?
I edited my timezone, maybe it will not show up again.
Still monitoring.
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Mon Jun 18, 2012 3:44 am
by DomeDan
Sure, just do:
rm error_log-20120614.bz2
logrotate will remove them automatically depending your settings
I got "maxage 365" in: /etc/logrotate.d/apache2
so they will be removed when 365 days old
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Mon Jun 18, 2012 4:05 am
by richardroi
thank you so much DomeDan!
How about access log that are also in .bz2 can i delete it also?
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Mon Jun 18, 2012 4:51 am
by DomeDan
Yeah, I just answered your work-mate that asked the same question:
http://vicidial.org/VICIDIALforum/viewt ... =4&t=25354
Re: error_log-20120614.bz2 (apache2 error logs)
Posted:
Mon Jun 18, 2012 6:17 am
by richardroi
Thank you so much!!!