<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How To customize the log file format of Apache webserver' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How To customize the log file format of Apache webserver' posted on the 'Apache' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 09:31:49 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 09:31:49 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How To customize the log file format of Apache webserver</title>
      <link>http://www.programmersheaven.com/mb/Apache/364111/364111/how-to-customize-the-log-file-format-of-apache-webserver/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I want to change default Log file format of the Apache server.&lt;br /&gt;
I know the command for it.It is as below..&lt;br /&gt;
&lt;span style="color: Red;"&gt;LogFormat "%t %h %u %m %U %s %b %H %{Referer}i\" \"%{User-Agent}i\" detailedLog&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: Red;"&gt;CustomLog logs/access.log detailedLog&lt;/span&gt;&lt;br /&gt;
 But I don't know where to run this command.&lt;br /&gt;
 Can anybody please help in this context?.&lt;br /&gt;
 Tell me the steps &lt;br /&gt;
&lt;br /&gt;
Regards, &lt;br /&gt;
Swap1234&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/364111/364111/how-to-customize-the-log-file-format-of-apache-webserver/</guid>
      <pubDate>Thu, 02 Aug 2007 22:30:12 -0700</pubDate>
      <category>Apache</category>
    </item>
    <item>
      <title>Re: How To customize the log file format of Apache webserver</title>
      <link>http://www.programmersheaven.com/mb/Apache/364111/364113/re-how-to-customize-the-log-file-format-of-apache-webserver/#364113</link>
      <description>: Hello,&lt;br /&gt;
: &lt;br /&gt;
: I want to change default Log file format of the Apache server.&lt;br /&gt;
: I know the command for it.It is as below..&lt;br /&gt;
: &lt;span style="color: Red;"&gt;LogFormat "%t %h %u %m %U %s %b %H %{Referer}i\" &lt;br /&gt;
: \"%{User-Agent}i\" detailedLog&lt;/span&gt;&lt;br /&gt;
: &lt;span style="color: Red;"&gt;CustomLog logs/access.log detailedLog&lt;/span&gt;&lt;br /&gt;
:  But I don't know where to run this command.&lt;br /&gt;
:  Can anybody please help in this context?.&lt;br /&gt;
:  Tell me the steps &lt;br /&gt;
: &lt;br /&gt;
: Regards, &lt;br /&gt;
: Swap1234&lt;br /&gt;
: &lt;br /&gt;
The log configuration can be set in the server configuration or the virtual host configuration.&lt;br /&gt;
&lt;br /&gt;
source: &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog"&gt;http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#
customlog&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/364111/364113/re-how-to-customize-the-log-file-format-of-apache-webserver/#364113</guid>
      <pubDate>Thu, 02 Aug 2007 23:55:21 -0700</pubDate>
      <category>Apache</category>
    </item>
    <item>
      <title>Re: How To customize the log file format of Apache webserver</title>
      <link>http://www.programmersheaven.com/mb/Apache/364111/364120/re-how-to-customize-the-log-file-format-of-apache-webserver/#364120</link>
      <description>: : Hello,&lt;br /&gt;
: : &lt;br /&gt;
: : I want to change default Log file format of the Apache server.&lt;br /&gt;
: : I know the command for it.It is as below..&lt;br /&gt;
: : &lt;span style="color: Red;"&gt;LogFormat "%t %h %u %m %U %s %b %H %{Referer}i\" &lt;br /&gt;
: : \"%{User-Agent}i\" detailedLog&lt;/span&gt;&lt;br /&gt;
: : &lt;span style="color: Red;"&gt;CustomLog logs/access.log detailedLog&lt;/span&gt;&lt;br /&gt;
: :  But I don't know where to run this command.&lt;br /&gt;
: :  Can anybody please help in this context?.&lt;br /&gt;
: :  Tell me the steps &lt;br /&gt;
: : &lt;br /&gt;
: : Regards, &lt;br /&gt;
: : Swap1234&lt;br /&gt;
: : &lt;br /&gt;
: The log configuration can be set in the server configuration or the &lt;br /&gt;
: virtual host configuration.&lt;br /&gt;
: &lt;br /&gt;
: source: &lt;br /&gt;
: &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog"&gt;http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#
customlog&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thank u &lt;br /&gt;
 But I m not able to understand...&lt;br /&gt;
 can u please provide me detailed solution step-by-step.....&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Swap1234&lt;br /&gt;
 &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/364111/364120/re-how-to-customize-the-log-file-format-of-apache-webserver/#364120</guid>
      <pubDate>Fri, 03 Aug 2007 03:06:37 -0700</pubDate>
      <category>Apache</category>
    </item>
    <item>
      <title>Re: How To customize the log file format of Apache webserver</title>
      <link>http://www.programmersheaven.com/mb/Apache/364111/364131/re-how-to-customize-the-log-file-format-of-apache-webserver/#364131</link>
      <description>: : : Hello,&lt;br /&gt;
: : : &lt;br /&gt;
: : : I want to change default Log file format of the Apache server.&lt;br /&gt;
: : : I know the command for it.It is as below..&lt;br /&gt;
: : : &lt;span style="color: Red;"&gt;LogFormat "%t %h %u %m %U %s %b %H %{Referer}i\" &lt;br /&gt;
: : : \"%{User-Agent}i\" detailedLog&lt;/span&gt;&lt;br /&gt;
: : : &lt;span style="color: Red;"&gt;CustomLog logs/access.log detailedLog&lt;/span&gt;&lt;br /&gt;
: : :  But I don't know where to run this command.&lt;br /&gt;
: : :  Can anybody please help in this context?.&lt;br /&gt;
: : :  Tell me the steps &lt;br /&gt;
: : : &lt;br /&gt;
: : : Regards, &lt;br /&gt;
: : : Swap1234&lt;br /&gt;
: : : &lt;br /&gt;
: : The log configuration can be set in the server configuration or the &lt;br /&gt;
: : virtual host configuration.&lt;br /&gt;
: : &lt;br /&gt;
: : source: &lt;br /&gt;
: : &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#customlog"&gt;http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#
customlog&lt;/a&gt;&lt;br /&gt;
: &lt;br /&gt;
: Thank u &lt;br /&gt;
:  But I m not able to understand...&lt;br /&gt;
:  can u please provide me detailed solution step-by-step.....&lt;br /&gt;
: &lt;br /&gt;
: Regards,&lt;br /&gt;
: Swap1234&lt;br /&gt;
:  &lt;br /&gt;
: &lt;br /&gt;
If you want the custom log to be applied to the entire server then you need to place the LogFormat in your httpd.conf outside of any virtual host definitions.&lt;br /&gt;
If you want the custom log to be applied to only one virtual host then you need to place the LogFormat in your httpd.conf inside of the virtual host definition, for which you need that format.&lt;br /&gt;
If you want the custom log to be applied to more than one virtual hosts, then you need to place the LogFormat in your httpd.conf inside each of the of the virtual host definition, for which you need that format.&lt;br /&gt;
The httpd.conf file is a plain text file in the conf folder, which is located in the installation folder of your apache server.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Apache/364111/364131/re-how-to-customize-the-log-file-format-of-apache-webserver/#364131</guid>
      <pubDate>Fri, 03 Aug 2007 07:32:11 -0700</pubDate>
      <category>Apache</category>
    </item>
  </channel>
</rss>