customizing cookie information in Apache logs

customizing cookie information in Apache logs

Post by Sure » Thu, 21 Mar 2002 05:57:03



I guess a few of us might have already been through this.

Our web site sets about 7 different cookies - of which I need just two
to be logged into my access_log file. If I say (in Apache's
httpd.conf)
*** LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Cookie}i\"" common ***
I am getting ALL cookies. Is there a way to configure Apache to log
only specific cookies. Can someone walk me through the process?

Thanks in advance.

-SS

 
 
 

customizing cookie information in Apache logs

Post by Dave Patt » Thu, 21 Mar 2002 06:27:24




Quote:>I guess a few of us might have already been through this.

>Our web site sets about 7 different cookies - of which I need just two
>to be logged into my access_log file. If I say (in Apache's
>httpd.conf)
>*** LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Cookie}i\"" common ***
>I am getting ALL cookies. Is there a way to configure Apache to log
>only specific cookies. Can someone walk me through the process?

>Thanks in advance.

>-SS

Have you looked at this page:
<http://httpd.apache.org/docs/logs.html>
including the section on Conditional Logging?

-----------
Dave Patton

 
 
 

customizing cookie information in Apache logs

Post by Sure » Thu, 21 Mar 2002 23:55:29


Dave, thank you for your response.

Correct me if I am wrong, conditional logging only lets NOT to log a
particular REQUEST if it fits the specified condition. I need to log
ALL requests, but each log entry should have only the cookie
information I want it to carry.

Just to avoid some parsing pains :)

-SS


> Have you looked at this page:
> <http://httpd.apache.org/docs/logs.html>
> including the section on Conditional Logging?

> -----------
> Dave Patton

 
 
 

1. Can you log specific cookies with Apache %{cookie}i log format?

Hi

Just wanted to know if it is possible to limit the returned \"%{cookie}i \"
string in our custom logfile to only show the "Apache=" cookie rather than
all the cookies set for the current servers domain. We are comparing the
\"%{set-cookie}o\" server response to the browser set-cookie request to
identify browsers who have turned off cookies. Logging other cookies not set
directly by Apache seems a waste of disk space. Is there an alternative
other than fiddling with the mod_log_config code?

Any clues much appreciated.

Rob.

2. Thread priority scheduling across linux kernels.

3. Custom Logs With Web App Specific Information That Is NON Cookie NON Header Information?

4. !!!HELP!!! ld.so.1 not found

5. Need HELP to Log User Log-ins form the internet

6. Olympus sys.230

7. My linux+Apache+mod_perl cannot recognize"print "Set-Cookie: cookie-name = Unique; "

8. modeling software

9. How 2 log apache cookie 4 webtrends?

10. Apache cookie logging

11. Cookie logging in Apache

12. apache cookie log tools ?

13. apache,cookie and denying access to those whithout the cookie set