C
C
Chvalov2014-08-23 22:44:41
Apache HTTP Server
Chvalov, 2014-08-23 22:44:41

How to understand what the problem is, constantly clogging the log with Apache2 errors in ubuntu?

The log from apache is constantly filled in /var/log/apache2/error.log
Here are the entries and a lot of them all the time:

[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/

What are the problems and how to solve them?
And is it possible to archive the logs in the form of date.tar for the crown every 10 days and clean the file after archiving?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Skogorev, 2014-08-23
@Chvalov

lower the log level to notice
c LogLevel debug to LogLevel notice
this is not a problem, this is debug information

V
vsuhachev, 2014-08-24
@vsuhachev

For compressing and clearing logs - take a look at /etc/logrotate.d/apache2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question