You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Jean-Baptiste <Je...@montrealboutique.com> on 2008/04/03 21:51:18 UTC

Tomcat access log config within Geronimo

Hello,

 

Can someone please tell me where to find the Valve (I assume it is Valve)
config for the Tomcat access log ?

I need to redirect Tomcat’s access log to a different directory and can’t
find the config for it. I looked in server-log4j.properties and config.xml
but can’t find it.

 

Thanks.

 

JB


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008
12:32 PM



No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 

RE: Tomcat access log config within Geronimo

Posted by Jean-Baptiste <Je...@montrealboutique.com>.
Thank you very much for the information.

 

Regards,

 

JB

 

   _____  

From: Vamsavardhana Reddy [mailto:c1vamsi1c@gmail.com] 
Sent: April 3, 2008 4:56 PM
To: user@geronimo.apache.org
Subject: Re: Tomcat access log config within Geronimo

 

In Geronimo 2.1, the access log parameters can be changed by adding xml
similar to the folllowing xml inside the <module
name="org.apache.geronimo.configs/tomcat6/2.1/car"> element in
var/config/config.xml:

<gbean name="AccessLogValve">
    <attribute name="initParams">prefix=access_log.
    suffix=.txt
    pattern=common
    fileDateFormat=yyyy-MM</attribute>
</gbean>

You should be able to use all attributes listed in HYPERLINK
"http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html"http://tomcat.apa
che.org/tomcat-6.0-doc/config/valve.html inside the attribute element.  Note
that the WebAccessLogViewer portlet may not function as expected after this
change.

Hope this helps.

++Vamsi

2008/4/4 Jean-Baptiste <HYPERLINK
"mailto:Jean-Baptiste.Laplace@montrealboutique.com"Jean-Baptiste.Laplace@mon
trealboutique.com>:

Hello,

 

Can someone please tell me where to find the Valve (I assume it is Valve)
config for the Tomcat access log ?

I need to redirect Tomcat's access log to a different directory and can't
find the config for it. I looked in server-log4j.properties and config.xml
but can't find it.

 

Thanks.

 

JB

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008
12:32 PM

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 

RE: Tomcat access log config within Geronimo

Posted by Jean-Baptiste <Je...@montrealboutique.com>.
Hello Vamsi,

 

Thanks again for your input but this leads me to the following question… 

Where have you learned about this GBean ? Do you know where I could find a
list of available GBean that can be used with Geronimo ?

 

Regards,

 

JB

 

   _____  

From: Vamsavardhana Reddy [mailto:c1vamsi1c@gmail.com] 
Sent: April 3, 2008 4:56 PM
To: user@geronimo.apache.org
Subject: Re: Tomcat access log config within Geronimo

 

In Geronimo 2.1, the access log parameters can be changed by adding xml
similar to the folllowing xml inside the <module
name="org.apache.geronimo.configs/tomcat6/2.1/car"> element in
var/config/config.xml:

<gbean name="AccessLogValve">
    <attribute name="initParams">prefix=access_log.
    suffix=.txt
    pattern=common
    fileDateFormat=yyyy-MM</attribute>
</gbean>

You should be able to use all attributes listed in HYPERLINK
"http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html"http://tomcat.apa
che.org/tomcat-6.0-doc/config/valve.html inside the attribute element.  Note
that the WebAccessLogViewer portlet may not function as expected after this
change.

Hope this helps.

++Vamsi

2008/4/4 Jean-Baptiste <HYPERLINK
"mailto:Jean-Baptiste.Laplace@montrealboutique.com"Jean-Baptiste.Laplace@mon
trealboutique.com>:

Hello,

 

Can someone please tell me where to find the Valve (I assume it is Valve)
config for the Tomcat access log ?

I need to redirect Tomcat's access log to a different directory and can't
find the config for it. I looked in server-log4j.properties and config.xml
but can't find it.

 

Thanks.

 

JB

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008
12:32 PM

 

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM

 

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 

Re: Tomcat access log config within Geronimo

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
In Geronimo 2.1, the access log parameters can be changed by adding xml
similar to the folllowing xml inside the <module
name="org.apache.geronimo.configs/tomcat6/2.1/car"> element in
var/config/config.xml:

<gbean name="AccessLogValve">
    <attribute name="initParams">prefix=access_log.
    suffix=.txt
    pattern=common
    fileDateFormat=yyyy-MM</attribute>
</gbean>

You should be able to use all attributes listed in
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html inside the
attribute element.  Note that the WebAccessLogViewer portlet may not
function as expected after this change.

Hope this helps.

++Vamsi

2008/4/4 Jean-Baptiste <Je...@montrealboutique.com>:

>  Hello,
>
>
>
> Can someone please tell me where to find the Valve (I assume it is Valve)
> config for the Tomcat access log ?
>
> I need to redirect Tomcat's access log to a different directory and can't
> find the config for it. I looked in server-log4j.properties and config.xml
> but can't find it.
>
>
>
> Thanks.
>
>
>
> JB
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date:
> 30/03/2008 12:32 PM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date:
> 02/04/2008 4:14 PM
>