What are the known formats for Log files?

Data System Architecture


A page about the format or structure of log file.


  • message (a piece of text which is the only mandatory data)
  • date
  • and custom attributes such as:

Known Format

Most format are single line.

Apache Common Log Format

Log - Apache Common Log Format


  • for this configuration:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
  • you get: - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"

Labeled Tab-separated Values (LTSV)

Labeled Tab-separated Values (LTSV) add a label


  • Each record is represented as a single line.
  • Each field is separated by TAB and has a label and a value. The label and the value have been separated by ':'.


  • for this configuration
LogFormat "host:%h\tident:%l\tuser:%u\ttime:%t\treq:%r\tstatus:%>s\tsize:%b\treferer:\%{Referer}i\tua:%{User-Agent}i" combined_ltsv
  • you get
host:<TAB>ident:-<TAB>user:frank<TAB>time:[10/Oct/2000:13:55:36 -0700]<TAB>req:GET /apache_pb.gif HTTP/1.0<TAB>status:200<TAB>size:2326<TAB>referer:http://www.example.com/start.html<TAB>ua:Mozilla/4.08 [en] (Win98; I ;Nav)




See Ideolog

Discover More
Data System Architecture
Log - Apache Common Log Format

Apache Common Log Format is a Log format for a HTTP request received by a web server that comes from the Apache Web Server. Log file entry for a request: where: is the IP address (or host...
Data System Architecture
Log - Logging

A log is a text file with: a timed list of message (activities) that an application has performed execution/request log: web server: web log ( - that stores the Http request error cron...

Share this page:
Follow us:
Task Runner