Zum Inhalt springen

Common Log Format

aus Wikipedia, der freien Enzyklopädie
Dies ist eine alte Version dieser Seite, zuletzt bearbeitet am 11. Oktober 2023 um 14:10 Uhr durch ElBe (Diskussion | Beiträge) (Entwurf neu angelegt). Sie kann sich erheblich von der aktuellen Version unterscheiden.
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)


Diese Baustelle befindet sich fälschlicherweise im Artikelnamensraum. Bitte verschiebe die Seite oder entferne den Baustein {{Baustelle}}.
Das '''Common Log Format''' ist ein [[Dateiformat]], welches von [[Webserver]]n für [[Logdatei|Server Logs]] genutzt wird.

For computer [[log management]], the '''Common Log Format''',<ref>{{cite web
| url=http://www.w3.org/Daemon/User/Config/Logging.html#common-logfile-format
| title=Logging in W3C httpd
| publisher=[[World Wide Web Consortium]]
| date=1995-10-12
| accessdate=2015-04-16}}</ref> also known as the '''NCSA Common log format''',<ref>{{cite web
| url=http://publib.boulder.ibm.com/tividd/td/ITWSA/ITWSA_info45/en_US/HTML/guide/c-logs.html#common
| title=Log File Formats: NCSA Common
| publisher=[[IBM]]
| date=2004-05-19
| archive-url=https://web.archive.org/web/20210224022111/http://publib.boulder.ibm.com/tividd/td/ITWSA/ITWSA_info45/en_US/HTML/guide/c-logs.html#common
| accessdate=2013-05-07| archive-date=2021-02-24
}}</ref> (after [[NCSA HTTPd]]) is a standardized [[text file]] format used by [[web server]]s when generating [[Server log|server log files]].<ref>{{Cite web |last=stevewhims |title=NCSA Logging - Win32 apps |url=https://learn.microsoft.com/en-us/windows/win32/http/ncsa-logging |access-date=2023-02-17 |website=learn.microsoft.com |language=en-us}}</ref> Because the format is standardized, the files can be readily analyzed by a variety of [[Web log analysis software|web analysis programs]], for example [[Webalizer]] and [[Analog (program)|Analog]].

Each line in a file stored in the Common Log Format has the following syntax:

<pre>
host ident authuser date request status bytes

The format is extended by the Combined Log Format with referer and user-agent fields.

Example

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

A dash (Vorlage:Code) in a field indicates missing data.

Usage

Log files are a standard tool for computer systems developers and administrators. They record the "what happened, when, by whom" of the system. This information can record faults and help their diagnosis. It can identify security breaches and other computer misuse. It can be used for auditing. It can be used for accounting purposes.Vorlage:Citation needed

The information stored is only available for later analysis if it is stored in a form that can be analysed. This data can be structured in many ways for analysis. For example, storing it in a relational database would force the data into a query-able format. However, it would also make it more difficult to retrieve if the computer crashed, and logging would not be available unless the database was available. A plain text format minimises dependencies on other system processes, and assists logging at all phases of computer operation, including start-up and shut-down, where such processes might be unavailable.Vorlage:Citation needed

See also

References

Vorlage:Reflist