PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache Server access_log



herrbert2002
16.11.01, 02:00
hallo kann mir bitte wer sagen was ich bei apache einstellen muss damit ich so ein logfile bekomme angeblich combined doch es funkt nicht
kann mir wer ne democonfig schicken
vielen dank mfg herrbert2002






111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"

stefaan
16.11.01, 15:38
Servus!

Das nächste mal bitte in ganzen deutschen Sätzen mit Satzzeichen und so! :eek:

Schau dir mal folgendes an, das ist ein Auszug aus meiner Test-Apache-Conf, da ist alles beschrieben, besonders die letzte Zeile... :cool:



# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog /usr/local/apache/1.3.20/logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
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

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog /usr/local/apache/1.3.20/logs/access_log common

#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog /usr/local/apache/1.3.20/logs/referer_log referer
#CustomLog /usr/local/apache/1.3.20/logs/agent_log agent

#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog /usr/local/apache/1.3.20/logs/access_log combined


Eine weitere gute Anlaufstelle ist http://http.apache.org oder http://127.0.0.1/manual/ :D

Grüße, Stefan

herrbert2002
16.11.01, 15:49
vielen dank ich werds gleich einmal probieren

Elektronator
16.11.01, 17:38
u. U. ist

CustomLog /var/log/httpd/access_log combined

vorzuziehen. (je nachdem wo du dein logfile haben willst)

Mr.Smith
07.01.03, 18:44
Dazu hätte ich dann auch gleich mal ne Frage:

Undzwar sieht man ja bei einigen Webspace-Providern auch, daß die Access_Logs täglich gezipped werden und schön und säuberlich aufgeräumt abgelegt werden.

Ich denke mal daß dies über einen Cron-Job laufen müsste, könnte mir vielleicht jemand sagen wie das auszusehen hat ? Ich wäre sehr verbunden für jedwede Hilfe :)

Danke im Voraus,

Mr.Smith