Re: giving users their own http logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 09, 2004 at 12:57:50PM -0800, Chris W. Parker wrote:
> Ben Yau <mailto:byau@xxxxxxxxxxxxxxxx>
>     on Friday, January 09, 2004 12:17 PM said:
> 
> > 1) keep the original log intact and provide copies to the users with
> > only their relevant entries?
> 
> > 3) provide the logs in real time
> 
> Those two fit what I want.
> 
> The whole reason I brought this up was because when I'm logged in under
> a regular user (not root) and something goes wrong with the site I'm
> working on I have to 'su -' and examine the logs and then 'exit' back.
> It was just getting annoying. ;)
> 
> > Alternatively you could probably write a much cleaner (and more
> > thorough and less resource intensive ) script in Perl.  If you need
> > more pointers on this let me know
> 
> This would be great but please don't trouble yourself over it. (I don't
> really know anything about writing perl so any help would be great.)

There is an alternative provided by apache itself:

Use the SetEnvIf directive to set a variable depending a a regular
expression over the URI, and set specific CustomLog directives to send
the entries matching each variable to a different log file. Example:

SetEnvIf Request_URI "^/\~user1/" user1
SetEnvIf Request_URI "^/\~user2/" user2
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux