Page 1 of 1

nur noch "combined" in der access_log

Posted: 2010-01-16 16:44
by PeterLustig123
Hallo,

habe heute festgestellt das mein access_log seit dem 21.10.2009 nicht mehr funktioniert... mitten im log kam dann immer nur noch "combined".... habe dann mal vieles gecheckt aber konnte den Fehler nicht finden.

hatte dann in der apache2 den customlog mal auf common gestellt... dann hat er in die log nur noch common geschrieben. Habe auch awstats am laufen der wertet logischerweise auch seit dem Tag nichts mehr aus.

Hat jemand eine Ahnung wo da der Fehler liegen könnte die mods setinv und log_status laufen beide noch habe mir auch mal die configs angeguckt... sah alles ok aus...

bin ratlos hat jemand eine Idee ?? Der error_log funktioniert noch einwandfrei...

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 17:12
by Joe User
Bitte die Ausgabe unverfälscht per Copy+Paste posten:

Code: Select all

grep -rin 'Log' /etc/apache*

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 17:18
by PeterLustig123
/etc/apache2/sysconfig.d/global.conf:12:LogLevel warn
/etc/apache2/sysconfig.d/global.conf:13:CustomLog /var/log/apache2/access_log co
mmon
/etc/apache2/sysconfig.d/loadmodule.conf:23:LoadModule log_config_module
/usr/lib64/apache2-prefork/mod_log_config.so
/etc/apache2/ssl-global.conf:28: # Pass Phrase Dialog:
/etc/apache2/ssl-global.conf:30: # The filtering dialog program (`built
in' is a internal
/etc/apache2/ssl-global.conf:31: # terminal dialog) has to provide the
pass phrase on stdout.
/etc/apache2/ssl-global.conf:32: SSLPassPhraseDialog builtin
/etc/apache2/httpd.conf:21:# Overview of include files, chronologically:
/etc/apache2/httpd.conf:29:# |-- mod_log_config.conf . . . . . . . . . define
logging formats
/etc/apache2/httpd.conf:72:# |-- mod_log_config.conf
/etc/apache2/httpd.conf:108:# ErrorLog: The location of the error log file.
/etc/apache2/httpd.conf:109:# If you do not specify an ErrorLog directive within
a <VirtualHost>
/etc/apache2/httpd.conf:111:# logged here. If you *do* define an error logfile
for a <VirtualHost>
/etc/apache2/httpd.conf:112:# container, that host's errors will be logged there
and not here.
/etc/apache2/httpd.conf:113:#ErrorLog /var/log/apache2/error_log
/etc/apache2/httpd.conf:121:# predefined logging formats
/etc/apache2/httpd.conf:122:#Include /etc/apache2/mod_log_config.conf
/etc/apache2/mod_log_config.conf:3:# a CustomLog directive.
/etc/apache2/mod_log_config.conf:5:# http://httpd.apache.org/docs-2.2/mod/mod_lo
g_config.html
/etc/apache2/mod_log_config.conf:11:LogFormat "%h %l %u %t \"%r\" %>s %b"common
/etc/apache2/mod_log_config.conf:12:LogFormat "%v %h %l %u %t \"%r\" %>s %b"vhos
t_common
/etc/apache2/mod_log_config.conf:13:LogFormat "%{Referer}i -> %U" referer
/etc/apache2/mod_log_config.conf:14:LogFormat "%{User-agent}i" agent
/etc/apache2/mod_log_config.conf:15:LogFormat "%h %l %u %t \"%r\" %>s %b \
/etc/apache2/mod_log_config.conf:17:LogFormat "%v %h %l %u %t \"%r\" %>s %b \
/etc/apache2/mod_log_config.conf:20:# To use %I and %O, you need to enable mod_l
ogio
/etc/apache2/mod_log_config.conf:21:<IfModule mod_logio.c>
/etc/apache2/mod_log_config.conf:22:LogFormat "%h %l %u %t \"%r\" %>s %b \
/etc/apache2/mod_log_config.conf:26:# Use one of these when you want a compact n
on-error SSL logfile on a virtual
/etc/apache2/mod_log_config.conf:29:Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPH
ER}x \
/etc/apache2/mod_log_config.conf:31:Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPH
ER}x \
/etc/apache2/vhosts.d/vhost-ssl.template:43: ErrorLog /var/log/apache2/errorl
og
/etc/apache2/vhosts.d/vhost-ssl.template:44: TransferLog /var/log/apache2/acc
ess_log
/etc/apache2/vhosts.d/vhost-ssl.template:192: # Per-Server Logging:
/etc/apache2/vhosts.d/vhost-ssl.template:193: # The home of a custom SSL log
file. Use this when you want a
/etc/apache2/vhosts.d/vhost-ssl.template:194: # compact non-error SSL logfil
e on a virtual host basis.
/etc/apache2/vhosts.d/vhost-ssl.template:195: CustomLog /var/log/apache2/ssl_r
equest_log ssl_combined
/etc/apache2/vhosts.d/vhost.template:24: # if not specified, the global error
log is used
/etc/apache2/vhosts.d/vhost.template:25: ErrorLog /var/log/apache2/dummy-host
.example.com-error_log
/etc/apache2/vhosts.d/vhost.template:26: CustomLog /var/log/apache2/dummy-hos
t.example.com-access_log combined
/etc/apache2/mod_perl-startup.pl:16: use Apache2::Log ();
/etc/apache2/ssl.crt/ca-bundle.crt:206: Issuer: C=US, O=American Express
Company, Inc., OU=American Express Technologies, CN=American Express Certificate
Authority
/etc/apache2/ssl.crt/ca-bundle.crt:210: Subject: C=US, O=American Express
Company, Inc., OU=American Express Technologies, CN=American Express Certificat
e Authority
/etc/apache2/ssl.crt/ca-bundle.crt:268: Issuer: C=US, O=American Express
Company, Inc., OU=American Express Technologies, CN=American Express Global Cert
ificate Authority
/etc/apache2/ssl.crt/ca-bundle.crt:272: Subject: C=US, O=American Express
Company, Inc., OU=American Express Technologies, CN=American Express Global Cer
tificate Authority
/etc/apache2/httpd.conf~:21:# Overview of include files, chronologically:
/etc/apache2/httpd.conf~:29:# |-- mod_log_config.conf . . . . . . . . . define
logging formats
/etc/apache2/httpd.conf~:72:# |-- mod_log_config.conf
/etc/apache2/httpd.conf~:108:# ErrorLog: The location of the error log file.
/etc/apache2/httpd.conf~:109:# If you do not specify an ErrorLog directive withi
n a <VirtualHost>
/etc/apache2/httpd.conf~:111:# logged here. If you *do* define an error logfile
for a <VirtualHost>
/etc/apache2/httpd.conf~:112:# container, that host's errors will be logged ther
e and not here.
/etc/apache2/httpd.conf~:113:ErrorLog /var/log/apache2/error_log
/etc/apache2/httpd.conf~:121:# predefined logging formats
/etc/apache2/httpd.conf~:122:Include /etc/apache2/mod_log_config.conf
/etc/apache2/mime.types:167:application/x-gtktalog
/etc/apache2/mime.types:443:text/x-ksysv-log
/etc/apache2/mime.types:445:text/x-log log

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 18:08
by Joe User
Poste bitte nochmal die vollständige /etc/apache2/mod_log_config.conf

Welchen Editor verwendest Du zum Bearbeiten Deiner Configs?

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 18:36
by PeterLustig123
Notepad++ eigentlich kann aber auch mal zwischendurch was anderes gewesen sein...
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# http://httpd.apache.org/docs-2.2/mod/mo ... onfig.html
#

#
# Format string: Nickname:
#
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

# To use %I and %O, you need to enable mod_logio
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

# Use one of these when you want a compact non-error SSL logfile on a virtual
# host basis:
<IfModule mod_ssl.c>
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
\"%r\" %b" ssl_common
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
\"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\"" ssl_combined
</IfModule>


Re: nur noch "combined" in der access_log

Posted: 2010-01-16 19:59
by Joe User
PeterLustig123 wrote:Notepad++ eigentlich kann aber auch mal zwischendurch was anderes gewesen sein...
Irgendeiner Deiner Editoren legt Backupfiles mit Tilde am Ende an, Notepad++ ist es bei Defaulteinstellungen nicht.
PeterLustig123 wrote:

Code: Select all

LogFormat "%h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\""			combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\""			vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \
\"%{Referer}i\" \"%{User-Agent}i\" %I %O"		combinedio
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
\"%r\" %b"						ssl_common
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \
\"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\""		ssl_combined
Woher stammen die Zeilenumbrüche im Logformat? Entferne diese bitte mal.

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 20:10
by PeterLustig123
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# http://httpd.apache.org/docs-2.2/mod/mo ... onfig.html
#

#
# Format string: Nickname:
#
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b \\"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b \\"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

# To use %I and %O, you need to enable mod_logio
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \\"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

# Use one of these when you want a compact non-error SSL logfile on a virtual
# host basis:
<IfModule mod_ssl.c>
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\"%r\" %b" ssl_common
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\"" ssl_combined
</IfModule>
habs mal gemacht aber verändert leider nix :(

Re: nur noch "combined" in der access_log

Posted: 2010-01-16 21:39
by Joe User
Du musst aus den \\ auch noch \ machen.

Tip: Kaufe Dir bitte ein vernünftiges UNIX/Linux-Buch, dann kannst Du so einfache Fehler wie \\ selbst beheben.

Re: nur noch "combined" in der access_log

Posted: 2010-01-17 19:34
by PeterLustig123
Hallo,

hat leider auch nix geändert denn ich hatte ja schon auf common gestellt welches in einer zeile steht ohne \\
#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# http://httpd.apache.org/docs-2.2/mod/mo ... onfig.html
#

#
# Format string: Nickname:
#
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

# To use %I and %O, you need to enable mod_logio
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

# Use one of these when you want a compact non-error SSL logfile on a virtual
# host basis:
<IfModule mod_ssl.c>
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" ssl_common
Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\"" ssl_combined
</IfModule>


Re: nur noch "combined" in der access_log

Posted: 2010-01-17 19:52
by Joe User
OK, nachdem wir nun potentielle Stolpersteine beseitigt haben, widmen wir uns dem eigentlichen Problem:
PeterLustig123 wrote:

Code: Select all

/etc/apache2/httpd.conf:122:#Include /etc/apache2/mod_log_config.conf
/etc/apache2/httpd.conf~:122:Include /etc/apache2/mod_log_config.conf
Fällt Dir der Unterschied zwischen den beiden Dateien/Zeilen auf?

Re: nur noch "combined" in der access_log

Posted: 2010-01-17 19:55
by Joe User
Merke: grep, sed, diff und Co sind immer wieder sehr nützliche Tools und man sollte schnell lernen, wie man mit ihnen umgeht.

Re: nur noch "combined" in der access_log

Posted: 2010-01-17 23:05
by PeterLustig123
Gott bin ich doof.... Frage mich aber echt wie die Raute da rein kommt... kann mich nicht erinnern zu der Zeit mal was an der httpd.conf geändert zu haben.... Dennoch danke für die Hilfe und belehrungen ^^