You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fernando Remus Nagel <fe...@yahoo.com.br> on 2004/11/04 15:53:07 UTC

[users@httpd] log generation

I've made a authenticated access to some directory in the server through '.htaccess' file.

How I generate a log of the access to this directory?
______________________
Fernando Remus Nagel
Engenharia de Computação
SiSC Labs - PUCRS


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004

Re: [users@httpd] log generation

Posted by Ralf Glauberman <rg...@michaeli-gymnasium.de>.
use your access-log and grep in it for every line relevant, for example:
grep "/protected-directory/" access_log > accesslog_protected

----- Original Message ----- 
From: Fernando Remus Nagel
To: users@httpd.apache.org
Sent: Thursday, November 04, 2004 3:53 PM
Subject: [users@httpd] log generation


I've made a authenticated access to some directory in the server through 
'.htaccess' file.

How I generate a log of the access to this directory?
______________________
Fernando Remus Nagel
Engenharia de Computação
SiSC Labs - PUCRS


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004 


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Eimantas Vaiciunas <ei...@sc.vu.lt>.
On Friday 05 November 2004 14:54, Fernando Remus Nagel wrote:
> Right! And how will be the script?
Well, you can write your own script for this. Bash/Perl/PHP/whatever.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Josh Kuo <jo...@prioritynetworks.net>.
Or you can use /usr/bin/logger that comes with most Red Hat-based distro
like this:

CustomLog "|/usr/bin/logger -p notice -t httpd" vhost



On Fri, 2004-11-05 at 04:54, Fernando Remus Nagel wrote:
> Right! And how will be the script?
> 
> ----- Original Message -----
> From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
> To: <us...@httpd.apache.org>
> Sent: Friday, November 05, 2004 10:21 AM
> Subject: Re: [users@httpd] log generation
> 
> 
> > On Friday 05 November 2004 14:18, Fernando Remus Nagel wrote:
> > > How I can do that?
> > CustomLog "|/path/to/script" common
> >
> > notice the pipe (|) symbol before the path to script.
> >
> > ---------------------------------------------------------------------
> > 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
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004
> 
> 
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
-- 
Josh Kuo <jo...@prioritynetworks.net>

Re: [users@httpd] log generation

Posted by Fernando Remus Nagel <fe...@yahoo.com.br>.
Right! And how will be the script?

----- Original Message -----
From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
To: <us...@httpd.apache.org>
Sent: Friday, November 05, 2004 10:21 AM
Subject: Re: [users@httpd] log generation


> On Friday 05 November 2004 14:18, Fernando Remus Nagel wrote:
> > How I can do that?
> CustomLog "|/path/to/script" common
>
> notice the pipe (|) symbol before the path to script.
>
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Eimantas Vaiciunas <ei...@sc.vu.lt>.
On Friday 05 November 2004 14:18, Fernando Remus Nagel wrote:
> How I can do that?
CustomLog "|/path/to/script" common

notice the pipe (|) symbol before the path to script.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Fernando Remus Nagel <fe...@yahoo.com.br>.
How I can do that?

----- Original Message -----
From: "Ralf Glauberman" <rg...@michaeli-gymnasium.de>
To: <us...@httpd.apache.org>
Sent: Thursday, November 04, 2004 3:00 PM
Subject: Re: [users@httpd] log generation


> you could tell apache to pipe the log to a script which does the
seperation
> on the fly.
>
> ----- Original Message -----
> From: "Fernando Remus Nagel" <fe...@yahoo.com.br>
> To: <us...@httpd.apache.org>
> Sent: Thursday, November 04, 2004 5:43 PM
> Subject: Re: [users@httpd] log generation
>
>
> > Can I do that without dealing the main log?
> >
> > ----- Original Message -----
> > From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
> > To: <us...@httpd.apache.org>
> > Sent: Thursday, November 04, 2004 1:03 PM
> > Subject: Re: [users@httpd] log generation
> >
> >
> >> On Thursday 04 November 2004 16:53, Fernando Remus Nagel wrote:
> >> > I've made a authenticated access to some directory in the server
> >> > through
> >> > '.htaccess' file.
> >> >
> >> > How I generate a log of the access to this directory?
> >> $ cat access_log | grep path/to/directory
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> >   "   from the digest: users-digest-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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Ralf Glauberman <rg...@michaeli-gymnasium.de>.
you could tell apache to pipe the log to a script which does the seperation 
on the fly.

----- Original Message ----- 
From: "Fernando Remus Nagel" <fe...@yahoo.com.br>
To: <us...@httpd.apache.org>
Sent: Thursday, November 04, 2004 5:43 PM
Subject: Re: [users@httpd] log generation


> Can I do that without dealing the main log?
>
> ----- Original Message -----
> From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
> To: <us...@httpd.apache.org>
> Sent: Thursday, November 04, 2004 1:03 PM
> Subject: Re: [users@httpd] log generation
>
>
>> On Thursday 04 November 2004 16:53, Fernando Remus Nagel wrote:
>> > I've made a authenticated access to some directory in the server 
>> > through
>> > '.htaccess' file.
>> >
>> > How I generate a log of the access to this directory?
>> $ cat access_log | grep path/to/directory
>>
>> ---------------------------------------------------------------------
>> 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
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004
>
>
>
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Eimantas Vaiciunas <ei...@sc.vu.lt>.
On Thursday 04 November 2004 18:43, Fernando Remus Nagel wrote:
> Can I do that without dealing the main log?
CustomLog is allowed only in server config and virtual hosts, so i don't think 
you can get this without read the whole access log file.
---
Eimis

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Fernando Remus Nagel <fe...@yahoo.com.br>.
Can I do that without dealing the main log?

----- Original Message -----
From: "Eimantas Vaiciunas" <ei...@sc.vu.lt>
To: <us...@httpd.apache.org>
Sent: Thursday, November 04, 2004 1:03 PM
Subject: Re: [users@httpd] log generation


> On Thursday 04 November 2004 16:53, Fernando Remus Nagel wrote:
> > I've made a authenticated access to some directory in the server through
> > '.htaccess' file.
> >
> > How I generate a log of the access to this directory?
> $ cat access_log | grep path/to/directory
>
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.773 / Virus Database: 520 - Release Date: 5/10/2004



---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] log generation

Posted by Eimantas Vaiciunas <ei...@sc.vu.lt>.
On Thursday 04 November 2004 16:53, Fernando Remus Nagel wrote:
> I've made a authenticated access to some directory in the server through
> '.htaccess' file.
>
> How I generate a log of the access to this directory?
$ cat access_log | grep path/to/directory

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org