anfängerfrage: logfile konfigurieren

Alles, was den Apache betrifft, kann hier besprochen werden.

anfängerfrage: logfile konfigurieren

Postby nagus » 26. February 2004 12:17

hallo

der titel sagt eigentlich schon alles... ich hab apache auf einem windows rechner installiert (version 1.3.23). um die wahrheit zu sagen... ich hab das quickstart-package von typo3 istalliert und da ist apache dabei ;)

naja... jedenfalls möchte ich das logfile vom apache so anpassen, dass folgendes mitgelogt wird:

hier das logfile des IIS, welchen ich zur zeit benutze und umsteigen möchte. alle infos die da jetzt geloggt weden, sollen auch deim apache logfile enthalten sein:

1. beispielzeile des iis logfiles

2004-01-24 00:18:30 195.202.170.170 - W3SVC44 MEINSERVER1 193.154.27.91 GET /xx/xxxxx/Xxxxx/xx_xx.asp - 200 37208 476 906 HTTP/1.0 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0) - http://www.google.de/search?q=Optisches ... rt=70&sa=N


2. beispielzeile des iis logfiles

2004-01-24 00:18:30 195.202.170.170 - W3SVC44 MEINSERVER1 193.154.27.91 GET /de/shared/Format.css - 200 8226 577 15 HTTP/1.0 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0) MPMSvisit=158;+ASPSESSIONIDCABBASBD=INEEGEHACPPOGGNGLHCJOAHG;+WEBTRENDS_ID=195.202.170.170-2561567328.29614607::C2626DE205A641A11D11E47F3D7C98EE http://www.xxxxxx.xx/de/portal/xxxx/xx_xxx.asp


und jetzt kommt ein ausschnitt aus meinem apache logfile:

10.1.0.98 - - [26/Feb/2004:11:26:17 +0100] "GET /quickstart/ HTTP/1.1" 200 17166


.... etwas "mickrig" im vergleich ;)

ich weiß bereits, dass ich die einstellungen im config-files vornehmen muss ( httpd.conf )

der entsprechende abschnitt schaut derzeit so aus:

# 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 logs/access.log common

#
# If you would...


wie kann ich das teil jetzt so konfigurieren, dass es mir die gleichen infos im logfile mitspeichert, wie mein "alter" IIS? ( z.b. wird der browser nicht mitgeloggt. etc... )

danke!!!!!!
nagus
 
Posts: 18
Joined: 26. February 2004 11:57

Postby nagus » 01. March 2004 16:37

das mit dem logfile konfigurieren hat sich inzwischen erledigt.

aber eine andere frage hätte ich noch: wie kann ich apache beibringen, jeden tag ein neues logfile anzulegen? alle 24h ein neues file mit aufsteigender nummerierung oder so. (also das alte soll NICHT überschrieben oder gelöscht werden)

wie geht das?
danke im voraus!
nagus
 
Posts: 18
Joined: 26. February 2004 11:57

Postby MinJun » 02. March 2004 21:07

Das mit den Logfiles kannst du mit einem kleinen Script erledigen siehe FAQ.

http://faq.kwm-web.info/index.php?sid=18082&aktion=artikel&rubrik=012&id=15&lang=de


Abr bei mir lief es nicht wie in der FAQ beschrieben?! Siehe mein Thread hier:
http://community.apachefriends.org/f/viewtopic.php?t=4109
Pampa: Grast du noch oder ziehst du um?!?
User avatar
MinJun
 
Posts: 29
Joined: 08. December 2003 08:06
Location: grazing in the pampa ;-)

Postby nagus » 03. March 2004 09:27

MinJun wrote:Das mit den Logfiles kannst du mit einem kleinen Script erledigen siehe FAQ.

http://faq.kwm-web.info/index.php?sid=18082&aktion=artikel&rubrik=012&id=15&lang=de


Abr bei mir lief es nicht wie in der FAQ beschrieben?! Siehe mein Thread hier:
http://community.apachefriends.org/f/viewtopic.php?t=4109


super danke! problem gelöst!
nagus
 
Posts: 18
Joined: 26. February 2004 11:57

Postby MinJun » 05. March 2004 17:21

Na, ja ich muss bei mir noch mal alles genau ausprobieren, irgendwie muss!!! es ja gehen :?
Pampa: Grast du noch oder ziehst du um?!?
User avatar
MinJun
 
Posts: 29
Joined: 08. December 2003 08:06
Location: grazing in the pampa ;-)


Return to Apache

Who is online

Users browsing this forum: No registered users and 18 guests