You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Chau Pham <ch...@hotmail.com> on 2013/01/18 09:31:25 UTC
RE: Add bandwidth information to access_log
Hi Everyone,
I would like to add some bandwidth information to http server log file: access_log,
Could anyone has experience on that?
where is the code to customize that?
Is it in modules/loggers/mod_log_config.c ??
Thank You,
Chau Pham.
RE: Add bandwidth information to access_log
Posted by Chau Pham <ch...@hotmail.com>.
Thank Christian for your suggestion,
> Date: Fri, 18 Jan 2013 10:57:11 +0100
> From: christian.folini@netnea.com
> To: dev@httpd.apache.org
> Subject: Re: Add bandwidth information to access_log
>
> Hey!
>
> You should look up the individual values in the mod_log_config
> documentation. The bytecount does not constitute the
> bandwidth. You have to take the time into your calculation
> as well. ModSecurity can give you those timings.
> You should look it up there and maybe turn to the mod-security
> mailinglist for help. This list is for httpd development.
>
> Cheers,
>
> Christian Folini
>
> Then you should turn to the ModSecurity
> On Fri, Jan 18, 2013 at 09:33:04AM +0000, Chau Pham wrote:
> > Thank you, I saw this line below in access log while it was playing m3u3 file, one of chunk below. 172.16.33.168 - - [18/Jan/2013:16:28:38 +0900] "GET /data/That_is_love-46.ts HTTP/1.1" 200 2019496 The number 2019496, does it stand for network traffic? I think it is in byte count, Can I consider that as bandwidth?
> > > Date: Fri, 18 Jan 2013 09:37:01 +0100
> > > From: christian.folini@netnea.com
> > > To: dev@httpd.apache.org
> > > Subject: Re: Add bandwidth information to access_log
> > >
> > > Hi there,
> > >
> > > On Fri, Jan 18, 2013 at 08:31:25AM +0000, Chau Pham wrote:
> > > > I would like to add some bandwidth information to http server log file: access_log,
> > >
> > > The Apache Security Book by Ivan Ristic has a recipe doing that with a
> > > former version of ModSecurity. ModSec has since changed its timestamps
> > > but it is still possible to get a value which more or less represents
> > > up- and downstream bandwidth. Still, you should not trust it too much.
> > >
> > > Regs,
> > >
> > > Christian Folini
> > >
> > > --
> > > Christian Folini - <ch...@netnea.com>
> >
>
> --
> Christian Folini - <ch...@netnea.com>
Re: Add bandwidth information to access_log
Posted by Mathijs <ma...@gmail.com>.
You might also get useful information (bytes received/sent per request)
from mod_logio: https://httpd.apache.org/docs/current/mod/mod_logio.html
Regards,
Mathijs Schmittmann
On Fri, Jan 18, 2013 at 10:57 AM, Christian Folini <
christian.folini@netnea.com> wrote:
> Hey!
>
> You should look up the individual values in the mod_log_config
> documentation. The bytecount does not constitute the
> bandwidth. You have to take the time into your calculation
> as well. ModSecurity can give you those timings.
> You should look it up there and maybe turn to the mod-security
> mailinglist for help. This list is for httpd development.
>
> Cheers,
>
> Christian Folini
>
> Then you should turn to the ModSecurity
> On Fri, Jan 18, 2013 at 09:33:04AM +0000, Chau Pham wrote:
> > Thank you, I saw this line below in access log while it was playing m3u3
> file, one of chunk below. 172.16.33.168 - - [18/Jan/2013:16:28:38 +0900]
> "GET /data/That_is_love-46.ts HTTP/1.1" 200 2019496 The number 2019496,
> does it stand for network traffic? I think it is in byte count, Can I
> consider that as bandwidth?
> > > Date: Fri, 18 Jan 2013 09:37:01 +0100
> > > From: christian.folini@netnea.com
> > > To: dev@httpd.apache.org
> > > Subject: Re: Add bandwidth information to access_log
> > >
> > > Hi there,
> > >
> > > On Fri, Jan 18, 2013 at 08:31:25AM +0000, Chau Pham wrote:
> > > > I would like to add some bandwidth information to http server log
> file: access_log,
> > >
> > > The Apache Security Book by Ivan Ristic has a recipe doing that with a
> > > former version of ModSecurity. ModSec has since changed its timestamps
> > > but it is still possible to get a value which more or less represents
> > > up- and downstream bandwidth. Still, you should not trust it too much.
> > >
> > > Regs,
> > >
> > > Christian Folini
> > >
> > > --
> > > Christian Folini - <ch...@netnea.com>
> >
>
> --
> Christian Folini - <ch...@netnea.com>
>
Re: Add bandwidth information to access_log
Posted by Christian Folini <ch...@netnea.com>.
Hey!
You should look up the individual values in the mod_log_config
documentation. The bytecount does not constitute the
bandwidth. You have to take the time into your calculation
as well. ModSecurity can give you those timings.
You should look it up there and maybe turn to the mod-security
mailinglist for help. This list is for httpd development.
Cheers,
Christian Folini
Then you should turn to the ModSecurity
On Fri, Jan 18, 2013 at 09:33:04AM +0000, Chau Pham wrote:
> Thank you, I saw this line below in access log while it was playing m3u3 file, one of chunk below. 172.16.33.168 - - [18/Jan/2013:16:28:38 +0900] "GET /data/That_is_love-46.ts HTTP/1.1" 200 2019496 The number 2019496, does it stand for network traffic? I think it is in byte count, Can I consider that as bandwidth?
> > Date: Fri, 18 Jan 2013 09:37:01 +0100
> > From: christian.folini@netnea.com
> > To: dev@httpd.apache.org
> > Subject: Re: Add bandwidth information to access_log
> >
> > Hi there,
> >
> > On Fri, Jan 18, 2013 at 08:31:25AM +0000, Chau Pham wrote:
> > > I would like to add some bandwidth information to http server log file: access_log,
> >
> > The Apache Security Book by Ivan Ristic has a recipe doing that with a
> > former version of ModSecurity. ModSec has since changed its timestamps
> > but it is still possible to get a value which more or less represents
> > up- and downstream bandwidth. Still, you should not trust it too much.
> >
> > Regs,
> >
> > Christian Folini
> >
> > --
> > Christian Folini - <ch...@netnea.com>
>
--
Christian Folini - <ch...@netnea.com>
RE: Add bandwidth information to access_log
Posted by Chau Pham <ch...@hotmail.com>.
Thank you, I saw this line below in access log while it was playing m3u3 file, one of chunk below. 172.16.33.168 - - [18/Jan/2013:16:28:38 +0900] "GET /data/That_is_love-46.ts HTTP/1.1" 200 2019496 The number 2019496, does it stand for network traffic? I think it is in byte count, Can I consider that as bandwidth?
> Date: Fri, 18 Jan 2013 09:37:01 +0100
> From: christian.folini@netnea.com
> To: dev@httpd.apache.org
> Subject: Re: Add bandwidth information to access_log
>
> Hi there,
>
> On Fri, Jan 18, 2013 at 08:31:25AM +0000, Chau Pham wrote:
> > I would like to add some bandwidth information to http server log file: access_log,
>
> The Apache Security Book by Ivan Ristic has a recipe doing that with a
> former version of ModSecurity. ModSec has since changed its timestamps
> but it is still possible to get a value which more or less represents
> up- and downstream bandwidth. Still, you should not trust it too much.
>
> Regs,
>
> Christian Folini
>
> --
> Christian Folini - <ch...@netnea.com>
Re: Add bandwidth information to access_log
Posted by Christian Folini <ch...@netnea.com>.
Hi there,
On Fri, Jan 18, 2013 at 08:31:25AM +0000, Chau Pham wrote:
> I would like to add some bandwidth information to http server log file: access_log,
The Apache Security Book by Ivan Ristic has a recipe doing that with a
former version of ModSecurity. ModSec has since changed its timestamps
but it is still possible to get a value which more or less represents
up- and downstream bandwidth. Still, you should not trust it too much.
Regs,
Christian Folini
--
Christian Folini - <ch...@netnea.com>