Common Log Format

Common Log Format
Dateiendung: .log
Entwickelt von: NCSA
Art: Logdatei

Das Common Log Format ist ein Dateiformat, das für das Logging von Webserver-Anfragen genutzt wird.

Jede Zeile hat die folgende Syntax:

host name authuser date request status bytes

Beispiel

127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326

Ein Minus (-) wird genutzt, wenn für ein Feld keine Daten vorhanden sind.

  • 127.0.0.1: Die IP-Adresse des Nutzers, der die Anfrage durchgeführt hat.
  • -: Die RFC 1413[1] Netzwerk-ID des Clients. Normalerweise "-".
  • frank: Die Nutzer-ID des Nutzers, der die Anfrage durchgeführt hat. Normalerweise "-", außer .htaccess benötigt Authentifizierung.
  • [11/Oct/2023:16:52:12 +0200]: Das Datum, die Uhrzeit und die Zeitzone, als die Anfrage angekommen ist.
  • "GET /apache_pb.gif HTTP/1.0": Die Anfrage des Clients.
  • 200: Der HTTP-Statuscode, der an den Client weitergegeben wird.
  • 2326: Größe des zurückgegeben Objekts. In Bytes angegeben.

Siehe auch

Einzelnachweise

  1. RFC: 1413 – Identification Protocol. Februar 1993 (löst RFC 931 ab, englisch).

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.