Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Information missing with piped Log setting for ErrorLog

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


shibi.ns at gmail

Nov 22, 2009, 11:32 AM

Post #1 of 3 (334 views)
Permalink
Information missing with piped Log setting for ErrorLog

Hello All,

Error log setting without piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
TransferLog '| rotatelogs \logs\access_log.%y%m%d 1M common';
ErrorLog '| rotatelogs \logs\error_log.%y%m%d 1M ';

Error log setting with piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
TransferLog '\logs\access_log.%y%m%d';
ErrorLog ' \logs\error_log.%y%m%d';

What I could noticed is when piped logging used some of the information in
log files are missing in log.

Applied following commands for both the configuration to generate the error
log file

$APACHE_HOME/bin/httpd -f /apps/conf/httpd.conf -k stop
$APACHE_HOME/bin/httpd -f /apps/conf/httpd.conf


Error log without piped logging feature

URS server process 17087 shutting down...
[Sun Nov 22 11:10:22 2009] [notice] Apache/2.2.9 (Unix) mod_perl/2.0.4
Perl/v5.8.8 configured -- resuming normal operations
URS server process 17106 shutting down...
URS server process 17103 shutting down...
URS server process 17101 shutting down...
URS server process 17104 shutting down...
URS server process 17105 shutting down...
URS server process 17107 shutting down...
URS server process 17109 shutting down...
URS server process 17102 shutting down...
URS server process 17110 shutting down...
URS server process 17108 shutting down...
*[Sun Nov 22 11:10:26 2009] [notice] caught SIGTERM, shutting down*
URS server process 17097 shutting down...


Error log with piped logging feature
URS server process 16906 shutting down...
[Sun Nov 22 11:08:41 2009] [notice] Apache/2.2.9 (Unix) mod_perl/2.0.4
Perl/v5.8.8 configured -- resuming normal operations

Any reason why this behavior ? I am more worried about red highlighted info
missing

--Shibi Ns--


aw at ice-sa

Nov 22, 2009, 2:24 PM

Post #2 of 3 (318 views)
Permalink
Re: Information missing with piped Log setting for ErrorLog [In reply to]

Shibi NS wrote:
> Hello All,
>
> Error log setting without piped logging feature
>
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
> common
> TransferLog '| rotatelogs \logs\access_log.%y%m%d 1M common';
> ErrorLog '| rotatelogs \logs\error_log.%y%m%d 1M ';
>
> Error log setting with piped logging feature
>
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
> common
> TransferLog '\logs\access_log.%y%m%d';
> ErrorLog ' \logs\error_log.%y%m%d';
>
I believe you mixed things up a bit above.
1) the first settings look like a piped log, and vice-versa.
2) The "common" at the end of TransferLog will be ignored.
Read this again :
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#transferlog
(and the preceding LogFormat, and also the CustomLog directive)

Also check the note in CustomLog about file paths :

When entering a file path on non-Unix platforms, care should be taken to
make sure that only forward slashed are used even though the platform
may allow the use of back slashes. In general it is a good idea to
always use forward slashes throughout the configuration files.


I suggest you correct all the above first, then test again, and get back
here if you still have a problem.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


shibi.ns at gmail

Nov 22, 2009, 8:24 PM

Post #3 of 3 (312 views)
Permalink
Re: Information missing with piped Log setting for ErrorLog [In reply to]

Sorry ,I made the mistake while writing this mail only

Here is the corrected info

Error log setting without piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
CustomLog '/logs/access_log';
ErrorLog ' /logs/error_log';

Error log setting with piped logging feature

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
common
CustomLog '| rotatelogs /logs/access_log.%y%m%d 1M common';
ErrorLog '| rotatelogs /logs/error_log.%y%m%d 1M';


Shibi Ns

On Mon, Nov 23, 2009 at 3:54 AM, André Warnier <aw [at] ice-sa> wrote:

> Shibi NS wrote:
>
>> Hello All,
>>
>> Error log setting without piped logging feature
>>
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
>> common
>> CustomLog '| rotatelogs \logs\access_log.%y%m%d 1M common';
>> ErrorLog '| rotatelogs \logs\error_log.%y%m%d 1M ';
>>
>> Error log setting with piped logging feature
>>
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
>> common
>> CustomLog '\logs\access_log.%y%m%d';
>> ErrorLog ' \logs\error_log.%y%m%d';
>>
>> I believe you mixed things up a bit above.
> 1) the first settings look like a piped log, and vice-versa.
> 2) The "common" at the end of TransferLog will be ignored.
> Read this again :
> http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#transferlog
> (and the preceding LogFormat, and also the CustomLog directive)
>
> Also check the note in CustomLog about file paths :
>
> When entering a file path on non-Unix platforms, care should be taken to
> make sure that only forward slashed are used even though the platform may
> allow the use of back slashes. In general it is a good idea to always use
> forward slashes throughout the configuration files.
>
>
> I suggest you correct all the above first, then test again, and get back
> here if you still have a problem.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> " from the digest: users-digest-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd
>
>


--
--Shibi Ns--

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.