s %b %T %H %{Host}i %{User-Agent}i %{Cookie}i %{Referer}i" iis" />

Make Apache logs mimic IIS

To make Apache write logs similar to IIS, toss this into your Apache configuration:

LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %u %m %U %q %>s %b %T %H %{Host}i
%{User-Agent}i %{Cookie}i %{Referer}i" iis

Printed from: http://rackerhacker.com/2007/01/29/make-apache-logs-mimic-iis/ .
© Major Hayden 2012.

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this