Changeset 9:81c25271b868 in livinglogic.python.aplora

Show
Ignore:
Timestamp:
04/04/05 20:35:33 (14 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Tags:
rel-0-2
Message:

Instead of using an environment variable to pass the site name
to aplora.py use the Apache directive %v now.

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • INSTALL.xml

    r8 r9  
    3636 
    3737<prog> 
    38 LogFormat "%{APLORA_SITE}e\t%{%s}t\t%D\t%a\t%{User-Agent}i\t%U\t%q\t%m\t%>s\t0\t0\t%B\t%{Referer}i\t%{Content-Type}o\t%{JSESSIONID}C\t%{Set-Cookie}o" aplora 
    39 SetEnv APLORA_SITE default 
    40 </prog> 
    41  
    42 <par>Then for each configured location that you wish to log as a 
    43 seperate site (e.g. each virtual server), put something like the 
    44 following into each <lit>&lt;Location&gt;</lit> or 
    45 <lit>&lt;Directory&gt;</lit> or virtual server configuration:</par> 
    46  
    47 <prog> 
    48 SetEnv APLORA_SITE <rep>sitename</rep> 
     38LogFormat "%v\t%{%s}t\t%D\t%a\t%{User-Agent}i\t%U\t%q\t%m\t%>s\t0\t0\t%B\t%{Referer}i\t%{Content-Type}o\t%{JSESSIONID}C\t%{Set-Cookie}o" aplora 
    4939CustomLog "|/usr/local/bin/aplora.py -o <rep>ORACLE_HOME</rep> -c <rep>user/pass@db</rep> -p log_insert" aplora 
    5040</prog> 
    5141 
    52 <par>Replace <lit><rep>sitename</rep></lit> with the name of the site 
    53 (which will be put into the field <lit>LOG_SITE</lit>, 
    54 <lit><rep>ORACLE_HOME</rep></lit> with the content of your 
     42<par>Replace <lit><rep>ORACLE_HOME</rep></lit> with the content of your 
    5543<lit>ORACLE_HOME</lit> environment variable (e.g. <lit>/oracle/Client</lit>) 
    56 and <lit><rep>user/pass@db</rep></lit> with the connect string appropriate. 
     44and <lit><rep>user/pass@db</rep></lit> with the appropriate connect string. 
    5745The option <option>-p</option> can be used to specify a different insert 
    5846procedure.</par> 
    5947 
     48<par>Note that this will only work for virtual hosts, if they don't have 
     49a <lit>CustomLog</lit> or <lit>ErrorLog</lit> directive. In case case you 
     50have to add the <lit>CustomLog</lit> specification for above to each 
     51virtual host section. This means that you will have more aplora jobs 
     52running and more datebase connection will be consumed.</par> 
     53 
    6054</section> 
  • NEWS.xml

    r0 r9  
     1<section><title>Changes in 0.2 (released 04/04/2005)</title> 
     2<ulist> 
     3<item>Instead of using an environment variable to pass the site name 
     4to <filename>aplora.py</filename> use the Apache directive <lit>%v</lit> now.</item> 
     5</ulist> 
     6</section> 
     7 
     8 
    19<section><title>Changes in 0.1 (released 01/18/2005)</title> 
    210<ulist> 
  • README

    r0 r9  
    1 ll-aplora 0.1 
     1ll-aplora 0.2 
    22 
    33ll-aplora is script that can be used with Apache piped logging facility to 
  • setup.py

    r3 r9  
    3939setup( 
    4040    name="ll-aplora", 
    41     version="0.1", 
     41    version="0.2", 
    4242    description="Logging Apache requests to an Oracle database", 
    4343    long_description=DESCRIPTION,