You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "JMS Internet, Inc." <jm...@earthlink.net> on 2002/04/27 12:20:18 UTC
Access log order
I'm attempting to process my server's access/error logs with
Awstats. Unfortunately my configuration of Apache (1.3.22) seems to be
listing the accesses out of order (not by time) so it will not process them
correctly... example:
195.23.155.88 - - [27/Apr/2002:03:16:24 +0000] "GET / HTTP/1.1" 200
62.104.220.72 - - [27/Apr/2002:03:08:16 +0000] "GET /serge.gif HTTP/1.0" 304
195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/bg.jpg
HTTP/1.1" 304
195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/other.jpg
HTTP/1.1" 304
Is there anyway to correct this so that Apache will output the lines in
order by time?
Thanks,
Jason
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Access log order
Posted by Joshua Slive <jo...@slive.ca>.
JMS Internet, Inc. wrote:
> I'm not very familiar with Apache configuration is there any
> documentation that explains how to remove the buffered_logs directive
> from my currently installation of Apache or recompile it without it? Or
> maybe someone could give me a quick rundown?
This is a compile-time setting, so you need to recompile to get rid of
it. But if you simply download Apache from the Apache website and
compile it, you will get a server without buffered logs. You need to
take special action to enable it (something like adding -DBUFFERED_LOGS
to CFLAGS before compiling).
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Access log order
Posted by "JMS Internet, Inc." <jm...@earthlink.net>.
I'm not very familiar with Apache configuration is there any documentation
that explains how to remove the buffered_logs directive from my currently
installation of Apache or recompile it without it? Or maybe someone could
give me a quick rundown?
Jason
At 10:55 AM 4/27/2002 -0400, you wrote:
>On Sat, 27 Apr 2002, JMS Internet, Inc. wrote:
>
> > I'm attempting to process my server's access/error logs with
> > Awstats. Unfortunately my configuration of Apache (1.3.22) seems to be
> > listing the accesses out of order (not by time) so it will not process them
> > correctly... example:
> > 195.23.155.88 - - [27/Apr/2002:03:16:24 +0000] "GET / HTTP/1.1" 200
> > 62.104.220.72 - - [27/Apr/2002:03:08:16 +0000] "GET /serge.gif
> HTTP/1.0" 304
> > 195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/bg.jpg
> > HTTP/1.1" 304
> > 195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/other.jpg
> > HTTP/1.1" 304
> >
> > Is there anyway to correct this so that Apache will output the lines in
> > order by time?
>
>You are probably running a vendor modified version of Apache that defines
>BUFFERED_LOGS. The regular version of apache as distributed from
>http://httpd.apache.org/ should not do this.
>
>Joshua.
>
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Access log order
Posted by Irmund Thum <it...@it97.dyn.dhs.org>.
JMS Internet, Inc. wrote:
> Is there anyway to correct this so that Apache will output the lines in
> order by time?
as long as this phenomen exists you may run a script, cron job with:
sort +2 -t- /usr/local/apache/logs/access_log
--
_ ___
| | Irmund Thum
| |
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Access log order
Posted by Joshua Slive <jo...@slive.ca>.
On Sat, 27 Apr 2002, JMS Internet, Inc. wrote:
> I'm attempting to process my server's access/error logs with
> Awstats. Unfortunately my configuration of Apache (1.3.22) seems to be
> listing the accesses out of order (not by time) so it will not process them
> correctly... example:
> 195.23.155.88 - - [27/Apr/2002:03:16:24 +0000] "GET / HTTP/1.1" 200
> 62.104.220.72 - - [27/Apr/2002:03:08:16 +0000] "GET /serge.gif HTTP/1.0" 304
> 195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/bg.jpg
> HTTP/1.1" 304
> 195.23.155.88 - - [27/Apr/2002:03:16:26 +0000] "GET /images/other.jpg
> HTTP/1.1" 304
>
> Is there anyway to correct this so that Apache will output the lines in
> order by time?
You are probably running a vendor modified version of Apache that defines
BUFFERED_LOGS. The regular version of apache as distributed from
http://httpd.apache.org/ should not do this.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org