Apache Log

Hallo liebe Liste,

ich hab ein kleinen Problem mit dem access_log.
Wenn ich über mein Netzwerk auf den Webserver zugreife, dann wird im Log angezeigt, welche Seiten ich abgerufen habe. Greife ich aber über das Internet auf den Webserver zu, dann stehen da nur kryptische Zeichen und 501 im Log ?
Kann mir jemand verrraten, warum beim Zugriff über das Internet nicht mitgeloggt wird, welche Seiten abgerufen wurden ?

Noch etwas. Gibt es ein Progrämmle, dass mir die Logs auch grafisch aufbereitet (Wer, Wann, Wieviele, Woher, Wohin …)?

Da ich auf dem Webserver im Moment meine Bewerbungsunterlagen liegen habe würde ich gern wissen, ob sich die Firmen bei denen ich mich beworben habe auch für diese Seiten interessieren und wie sie sich auf den Seiten bewegen.

Vielen Dank im Voraus
Karsten

  1. keine Ahnung…was kommt den genau?

  2. http://www.mrunix.net/webalizer/
    ist echt super!!

ich hab ein kleinen Problem mit dem access_log.
Wenn ich über mein Netzwerk auf den Webserver zugreife, dann
wird im Log angezeigt, welche Seiten ich abgerufen habe.
Greife ich aber über das Internet auf den Webserver zu, dann
stehen da nur kryptische Zeichen und 501 im Log ?

Zeigen. Die Konfigurationsdateien am besten ebenfalls.

Kann mir jemand verrraten, warum beim Zugriff über das
Internet nicht mitgeloggt wird, welche Seiten abgerufen wurden

Ohne genaue Fakten wohl kaum. Um welche Seiten geht es?

Noch etwas. Gibt es ein Progrämmle, dass mir die Logs auch
grafisch aufbereitet (Wer, Wann, Wieviele, Woher, Wohin …)?

Du willst auf http://freshmeat.net suchen. Zum Beispiel nach ‚webalizer‘.

Sebastian

Hier Log und httpd.conf

192.168.0.109 - - [22/Nov/2002:12:44:47 +0100] „GET /Bewerbung/Service02.html HTTP/1.1“ 200 1548
192.168.0.109 - - [22/Nov/2002:12:44:47 +0100] „GET /Bewerbung/Service/Service02.jpg HTTP/1.1“ 304 -
192.192.168.0.109 - - [22/Nov/2002:12:44:45 +0100] „GET /Bewerbung/Service/Service01.jpg HTTP/1.1“ 304 -
168.0.109 - - [22/Nov/2002:12:44:49 +0100] „GET /Bewerbung/Service03.html HTTP/1.1“ 200 2224
192.168.0.109 - - [22/Nov/2002:12:44:49 +0100] „GET /Bewerbung/Service/Service03.jpg HTTP/1.1“ 304 -
192.168.0.109 - - [22/Nov/2002:12:44:51 +0100] „GET /Bewerbung/Service04.html HTTP/1.1“ 200 1660
192.168.0.109 - - [22/Nov/2002:12:44:51 +0100] „GET /Bewerbung/Service/Service04.jpg HTTP/1.1“ 304 -
192.168.0.109 - - [22/Nov/2002:12:44:54 +0100] „GET /Bewerbung/Service03.html HTTP/1.1“ 200 2224

>>>>> So sieht das Log aus, wenn ich die Seiten über das lokale Netz abrufe.

p508BDC3A.dip.t-dialin.net - - [22/Nov/2002:12:44:55 +0100] „ãA“ 501 -
192.168.0.109 - - [22/Nov/2002:12:44:56 +0100] „GET /Bewerbung/Service02.html HTTP/1.1“ 200 1548
ACB24665.ipt.aol.com - - [22/Nov/2002:12:45:04 +0100] „ã?“ 501 -
p50867501.dip.t-dialin.net - - [22/Nov/2002:12:45:13 +0100] „ãP“ 501 -
p50841C88.dip.t-dialin.net - - [22/Nov/2002:12:45:23 +0100] „ãP“ 501 -
p508372E3.dip.t-dialin.net - - [22/Nov/2002:12:45:25 +0100] „ãP“ 501 -
p508BCC51.dip.t-dialin.net - - [22/Nov/2002:12:45:31 +0100] „ã=“ 501 -
213-96-206-170.uc.nombres.ttd.es - - [22/Nov/2002:12:45:39 +0100] „ãQ“ 501 -
pD9550A2B.dip.t-dialin.net - - [22/Nov/2002:12:45:48 +0100] „ãU“ 501 -
pD9550A2B.dip.t-dialin.net - - [22/Nov/2002:12:45:59 +0100] „ãU“ 501 -
brln-d9ba0829.pool.mediaWays.net - - [22/Nov/2002:12:46:07 +0100] „ã>“ 501 -
p508372E3.dip.t-dialin.net - - [22/Nov/2002:12:46:10 +0100] „ãP“ 501 -
p508BCC51.dip.t-dialin.net - - [22/Nov/2002:12:46:15 +0100] „ã=“ 501 -

>>>>>>>> So sieht das Log aus, wenn ich oder andere, übers Internet auf die Seiten zugreifen.

ErrorLog /var/log/httpd/error_log
LogLevel warn
LogFormat „combined“
LogFormat „%h %l %u %t „%r“ %>s %b „%{Referer}i“ „%{User-Agent}i““ combined
LogFormat „%h %l %u %t „%r“ %>s %b“ common
LogFormat „%{Referer}i -> %U“ referer
LogFormat „%{User-agent}i“ agent
CustomLog /var/log/httpd/access_log „common“

Das ist alles was zum Thema Log drin steht.

Zeigen. Die Konfigurationsdateien am besten ebenfalls.

Mach ich.

Du willst auf http://freshmeat.net suchen. Zum Beispiel nach
‚webalizer‘.

Ja das hatte ich, glaub ich, schon mal. War gut. Hatte nur den Namen vergessen.

Sebastian

Karsten

Das ist alles was zum Thema Log drin steht.

Wir brauchen die gesamte Datei, den Servernamen, am besten in „pre“ formatiert.

Was sagt das ErrorLog?

Sebastian

  1. keine Ahnung…was kommt den genau?

Hab die Log Datei und die httpd.conf veröffentlicht.

  1. http://www.mrunix.net/webalizer/
    ist echt super!!

JA!

Karsten

Das ist alles was zum Thema Log drin steht.

Wir brauchen die gesamte Datei, den Servernamen, am besten in
„pre“ formatiert.

Das ganze Riiiiiieeeeesending ? Na gut. Ich häng sie unten dran.
Was ist denn in „pre“ - Formatierung ?
Ich gehe davon aus, dass ich die Kommentare löschen soll.

((Bitte entschuldigt meine Unwissenheit.))

Was sagt das ErrorLog?

[Fri Nov 22 17:57:03 2002] [error] [client 212.89.17.89] Invalid method in request ã@
[Fri Nov 22 17:57:06 2002] [error] [client 213.209.129.9] Invalid method in request ãL
[Fri Nov 22 17:57:24 2002] [error] [client 80.59.104.36] Invalid method in request ãE
[Fri Nov 22 17:57:52 2002] [error] [client 213.209.129.9] Invalid method in request ãL
[Fri Nov 22 17:57:53 2002] [error] [client 212.89.17.89] Invalid method in request ã@
[Fri Nov 22 17:58:03 2002] [error] [client 217.232.104.194] Invalid method in request ã;
[Fri Nov 22 17:58:06 2002] [error] [client 80.128.223.57] Invalid method in request ã=
[Fri Nov 22 17:58:34 2002] [error] [client 213.209.129.9] Invalid method in request ãL
[Fri Nov 22 17:58:43 2002] [error] [client 217.232.104.194] Invalid method in request ã;
[Fri Nov 22 17:59:06 2002] [error] [client 212.183.92.77] Invalid method in request ã=
[Fri Nov 22 17:59:28 2002] [error] [client 217.232.104.194] Invalid method in request ã;
[Fri Nov 22 18:00:13 2002] [error] [client 217.232.104.194] Invalid method in request ã;
[Fri Nov 22 18:00:29 2002] [error] [client 80.128.223.57] Invalid method in request ã=
[Fri Nov 22 18:02:14 2002] [error] [client 80.116.114.183] Invalid method in request ãP
[Fri Nov 22 18:02:59 2002] [error] [client 80.116.114.183] Invalid method in request ãP
[Fri Nov 22 18:03:44 2002] [error] [client 80.116.114.183] Invalid method in request ãP
[Fri Nov 22 18:04:29 2002] [error] [client 80.116.114.183] Invalid method in request ãP
[Fri Nov 22 18:06:07 2002] [error] [client 80.59.104.36] Invalid method in request ãE
[Fri Nov 22 18:06:08 2002] [error] [client 212.89.17.89] Invalid method in request ã@
[Fri Nov 22 18:06:52 2002] [error] [client 80.59.104.36] Invalid method in request ãE
[Fri Nov 22 18:07:21 2002] [error] [client 80.130.182.34] Invalid method in request ãP
[Fri Nov 22 18:07:36 2002] [error] [client 80.59.104.36] Invalid method in request ãE
[Fri Nov 22 18:08:05 2002] [error] [client 80.130.182.34] Invalid method in request ãP
[Fri Nov 22 18:08:23 2002] [error] [client 80.59.104.36] Invalid method in request ãE
[Fri Nov 22 18:08:48 2002] [error] [client 80.130.182.34] Invalid method in request ãP
[Fri Nov 22 18:09:30 2002] [error] [client 80.130.182.34] Invalid method in request ãP
[Fri Nov 22 18:11:02 2002] [error] [client 80.143.244.67] Invalid method in request ã?
[Fri Nov 22 18:12:22 2002] [error] [client 217.230.199.4] Invalid method in request ãC
[Fri Nov 22 18:13:11 2002] [error] [client 217.226.49.192] Invalid method in request ãP

ServerType standalone
ServerRoot „/usr/local/httpd“
LockFile /var/lock/subsys/httpd/httpd.accept.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 1
StartServers 1
MaxClients 150
MaxRequestsPerChild 0
LoadModule mmap_static_module /usr/lib/apache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/lib/apache/mod_vhost_alias.so
LoadModule env_module /usr/lib/apache/mod_env.so
LoadModule define_module /usr/lib/apache/mod_define.so
LoadModule config_log_module /usr/lib/apache/mod_log_config.so
LoadModule agent_log_module /usr/lib/apache/mod_log_agent.so
LoadModule referer_log_module /usr/lib/apache/mod_log_referer.so
LoadModule mime_magic_module /usr/lib/apache/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/mod_negotiation.so
LoadModule status_module /usr/lib/apache/mod_status.so
LoadModule info_module /usr/lib/apache/mod_info.so
LoadModule includes_module /usr/lib/apache/mod_include.so
LoadModule autoindex_module /usr/lib/apache/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/mod_dir.so
LoadModule cgi_module /usr/lib/apache/mod_cgi.so
LoadModule asis_module /usr/lib/apache/mod_asis.so
LoadModule imap_module /usr/lib/apache/mod_imap.so
LoadModule action_module /usr/lib/apache/mod_actions.so
LoadModule speling_module /usr/lib/apache/mod_speling.so
LoadModule alias_module /usr/lib/apache/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/mod_rewrite.so
LoadModule access_module /usr/lib/apache/mod_access.so
LoadModule auth_module /usr/lib/apache/mod_auth.so
LoadModule anon_auth_module /usr/lib/apache/mod_auth_anon.so
LoadModule dbm_auth_module /usr/lib/apache/mod_auth_dbm.so
LoadModule db_auth_module /usr/lib/apache/mod_auth_db.so
LoadModule digest_module /usr/lib/apache/mod_digest.so
LoadModule proxy_module /usr/lib/apache/libproxy.so
LoadModule cern_meta_module /usr/lib/apache/mod_cern_meta.so
LoadModule expires_module /usr/lib/apache/mod_expires.so
LoadModule headers_module /usr/lib/apache/mod_headers.so
LoadModule usertrack_module /usr/lib/apache/mod_usertrack.so
LoadModule unique_id_module /usr/lib/apache/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/mod_setenvif.so

LoadModule ssl_module /usr/lib/apache/libssl.so

Include /etc/httpd/suse_loadmodule.conf

ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c

AddModule mod_ssl.c

Include /etc/httpd/suse_addmodule.conf
ExtendedStatus On

DavLockDB /var/lock/DAVLock

XBitHack on

Port 80

Listen 80
Listen 443

User wwwrun
Group nogroup

ServerAdmin [email protected]
ServerName loki.walhal

DocumentRoot /usr/local/httpd/htdocs

AuthUserFile /etc/httpd/passwd
AuthGroupFile /etc/httpd/group

Options -FollowSymLinks +Multiviews
AllowOverride None

Options Indexes -FollowSymLinks +Includes MultiViews

AllowOverride None

Order allow,deny
Allow from all

DAV Off

Options -FollowSymLinks +Includes +MultiViews

Order deny,allow
deny from all
allow from localhost

DirectoryIndex index.html

AccessFileName .htaccess

Order allow,deny
Deny from all

UseCanonicalName On

TypesConfig /etc/httpd/mime.types

DefaultType text/plain

MIMEMagicFile /etc/httpd/magic

HostnameLookups Off

UnixSocketDir /var/lib/backhand

SetHandler backhand-handler

ErrorLog /var/log/httpd/error_log
LogLevel warn
LogFormat „combined“
LogFormat „%h %l %u %t „%r“ %>s %b „%{Referer}i“ „%{User-Agent}i““ combined
LogFormat „%h %l %u %t „%r“ %>s %b“ common
LogFormat „%{Referer}i -> %U“ referer
LogFormat „%{User-agent}i“ agent
CustomLog /var/log/httpd/access_log „common“

ServerSignature On

Alias /icons/ „/usr/local/httpd/icons/“

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

ScriptAlias /cgi-bin/ „/usr/local/httpd/cgi-bin/“

ScriptAlias /perl/ „/usr/local/httpd/cgi-bin/“
ScriptAlias /cgi-perl/ „/usr/local/httpd/cgi-bin/“

AllowOverride None
Options None
Order allow,deny
Allow from all

AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script

Perlrequire /usr/include/apache/modules/perl/startup.perl
PerlModule Apache::Registry

SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On

SetHandler perl-script
PerlHandler Apache::stuck_out_tongue:erlRun
Options ExecCGI
PerlSendHeader On

IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif …
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

AddDescription „GZIP compressed document“ .gz
AddDescription „tar archive“ .tar
AddDescription „GZIP compressed tar archive“ .tgz

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8

LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

AddType application/x-httpd-tcl .ttml
AddType application/x-dtcl-tcl .tcl

AddType application/x-tar .tgz
AddType text/vnd.wap.wml wml
AddType text/vnd.wap.wmlscript wmls
AddType application/vnd.wap.wmlc wmlc
AddType application/vnd.wap.wmlscriptc wmlsc
Addtype image/vnd.wap.wbmp wbmp

AddHandler cgi-script .cgi

AddType text/html .shtml
AddHandler server-parsed .shtml

BrowserMatch „Mozilla/2“ nokeepalive
BrowserMatch „MSIE 4.0b2;“ nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch „RealPlayer 4.0“ force-response-1.0
BrowserMatch „Java/1.0“ force-response-1.0
BrowserMatch „JDK/1.0“ force-response-1.0

SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost

SetHandler server-info
Order deny,allow
Deny from all
Allow from localhost

SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from localhost

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl

SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

SSLMutex file:/var/run/ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /var/log/httpd/ssl_engine_log
SSLLogLevel info

DocumentRoot „/usr/local/httpd/htdocs“
ServerName new.host.name
ServerAdmin [email protected]
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/access_log

SSLEngine on

SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

SSLCertificateFile /etc/httpd/ssl.crt/server.crt

SSLCertificateKeyFile /etc/httpd/ssl.key/server.key

SSLOptions +StdEnvVars

SSLOptions +StdEnvVars

SetEnvIf User-Agent „.*MSIE.*“ \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

CustomLog /var/log/httpd/ssl_request_log \
„%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x „%r“ %b“

Include /etc/httpd/suse_include.conf

Das ganze Riiiiiieeeeesending ? Na gut. Ich häng sie unten
dran.
Was ist denn in „pre“ - Formatierung ?

Sowas:

[Fri Nov 22 17:57:03 2002] [error] [client 212.89.17.89] Invalid method in request ã@
[Fri Nov 22 17:57:06 2002] [error] [client 213.209.129.9]Invalid method in request ãL

Logdateien lesen sich so besser…

Ich gehe davon aus, dass ich die Kommentare löschen soll.

Jaja.

((Bitte entschuldigt meine Unwissenheit.))
:Was sagt das ErrorLog?

[Fri Nov 22 17:57:03 2002] [error] [client 212.89.17.89] Invalid method in request ã@

Ummmm… - nun kenne ich zu wenig Apache, um die Meldung zuordnen zu
können: ich persönlich würde deshalb nun mit Dingen wie tcpdump oder
ethereal schießen…

Wie war noch der Name des Servers?

Sebastian

Danke
Moin,

also des Rätsels Lösung scheint folgendes zu sein.

Alle Einträge im Error-Log, bei denen 501 vermerkt ist bedeuten: Method not implemented. Das sind dann auch die Zugriffe, bei denen die Auflösung nicht klappt.

Vielen Dank an alle, die mir geholfen haben.
Karsten