Chvalov
@Chvalov

Как понять в чем проблема, постоянно засоряет лог ошибками Apache2 в ubuntu?

Постоянно наполняется лог от apache в /var/log/apache2/error.log
Вот такие записи и их множество постоянно:
[Fri Aug 22 16:22:10.714565 2014] [authz_core:debug] [pid 2472] mod_authz_core.c(802): [client 10.11.1.210:57083] AH01626: authorization result of Require all granted: granted

[Fri Aug 22 16:22:10.714626 2014] [authz_core:debug] [pid 2472] mod_authz_core.c(802): [client 10.11.1.210:57083] AH01626: authorization result of <RequireAny>: granted

[Fri Aug 22 17:00:41.363892 2014] [deflate:debug] [pid 2777] mod_deflate.c(849): [client 10.11.1.210:60597] AH01384: Zlib: Compressed 133 to 113 : URL /index.php

[Fri Aug 22 17:27:18.929655 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant fio - assumed 'fio' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 35, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929695 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant uid - assumed 'uid' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929712 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant id - assumed 'id' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929725 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant phone - assumed 'phone' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929736 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant mapX - assumed 'mapX' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929746 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant mapY - assumed 'mapY' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929770 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant lid - assumed 'lid' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 36, referer: http://myovis.loc/?map

[Fri Aug 22 17:27:18.929781 2014] [:error] [pid 2924] [client 10.11.1.210:49574] PHP Notice:  Use of undefined constant adr - assumed 'adr' in /var/www/myovis.loc/public_html/lib/query/showToDelete.php on line 37, referer: http://myovis.loc/?map

[Fri Aug 22 17:40:58.235670 2014] [authz_core:debug] [pid 2852] mod_authz_core.c(802): [client 10.11.1.210:52204] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.235700 2014] [authz_core:debug] [pid 2852] mod_authz_core.c(802): [client 10.11.1.210:52204] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.250540 2014] [deflate:debug] [pid 2852] mod_deflate.c(849): [client 10.11.1.210:52204] AH01384: Zlib: Compressed 9574 to 2498 : URL /themes/TBDev/TBDev.css, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.252913 2014] [authz_core:debug] [pid 2924] mod_authz_core.c(802): [client 10.11.1.210:52207] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.252946 2014] [authz_core:debug] [pid 2924] mod_authz_core.c(802): [client 10.11.1.210:52207] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.252986 2014] [authz_core:debug] [pid 2850] mod_authz_core.c(802): [client 10.11.1.210:52206] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.253002 2014] [authz_core:debug] [pid 2850] mod_authz_core.c(802): [client 10.11.1.210:52206] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.253251 2014] [authz_core:debug] [pid 2854] mod_authz_core.c(802): [client 10.11.1.210:52205] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.253270 2014] [authz_core:debug] [pid 2854] mod_authz_core.c(802): [client 10.11.1.210:52205] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.260288 2014] [deflate:debug] [pid 2924] mod_deflate.c(849): [client 10.11.1.210:52207] AH01384: Zlib: Compressed 7199 to 3045 : URL /js/jquery.migrate.js, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.261086 2014] [deflate:debug] [pid 2854] mod_deflate.c(849): [client 10.11.1.210:52205] AH01384: Zlib: Compressed 3082 to 1237 : URL /js/resizer.js, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.268347 2014] [authz_core:debug] [pid 2852] mod_authz_core.c(802): [client 10.11.1.210:52204] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.268363 2014] [authz_core:debug] [pid 2852] mod_authz_core.c(802): [client 10.11.1.210:52204] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.269423 2014] [deflate:debug] [pid 2850] mod_deflate.c(849): [client 10.11.1.210:52206] AH01384: Zlib: Compressed 101188 to 35040 : URL /js/jquery.js, referer: http://p2p.ovis.vn.ua/

[Fri Aug 22 17:40:58.274929 2014] [authz_core:debug] [pid 2851] mod_authz_core.c(802): [client 10.11.1.210:52208] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Sat Aug 23 03:37:22.420504 2014] [authz_core:debug] [pid 3587] mod_authz_core.c(802): [client 10.13.1.63:65174] AH01626: authorization result of Require all granted: granted, referer: http://p2p.ovis.vn.ua/

[Sat Aug 23 03:37:22.420518 2014] [authz_core:debug] [pid 3587] mod_authz_core.c(802): [client 10.13.1.63:65174] AH01626: authorization result of <RequireAny>: granted, referer: http://p2p.ovis.vn.ua/

[Sat Aug 23 03:37:22.435381 2014] [deflate:debug] [pid 3587] mod_deflate.c(849): [client 10.13.1.63:65174] AH01384: Zlib: Compressed 31319 to 5923 : URL /index.php, referer: http://p2p.ovis.vn.ua/

Что за проблемы и как их решить ?

И можно ли как то по крону каждых 10 дней архивировать логи в виде дата.tar и чистить файл после архивации ?
  • Вопрос задан
  • 6223 просмотра
Решения вопроса 1
EnterSandman
@EnterSandman
Эникей
понизьте уровень лога до notiсe
c LogLevel debug до LogLevel notice
это не проблемы, это отладочная информация
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@vsuhachev
На счет сжатия и очистки логов - поглядите /etc/logrotate.d/apache2
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы