Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]

   Hi,
  I have enabled access logging by uncomment the Access Log Valve in the
server.xml file.  I have added the resolveHosts attribute and set it to
true.  I have also changed the pattern attribute to %h so that I can
just get the  Remote host name in the log file.  In the access log file
I only get an ip address per request.  Any ideas on why I am not able to
resolve host names?
Thanks,
Andrew





Re: Access Log Valve

2004-08-31 Thread QM
On Tue, Aug 31, 2004 at 10:29:09AM -0400, Sinkinson,Andrew [NCR] wrote:
: Reply-To: Tomcat Users List [EMAIL PROTECTED]
:   I have enabled access logging by uncomment the Access Log Valve in the
: server.xml file.  I have added the resolveHosts attribute and set it to
: true.  I have also changed the pattern attribute to %h so that I can
: just get the  Remote host name in the log file.  In the access log file
: I only get an ip address per request.  Any ideas on why I am not able to
: resolve host names?

Just one -- perhaps the IPs in question do not resolve to hostnames.

Put another way, those IPs may not be resolvable from the Tomcat host.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]
If I log onto the server running my tomcat installation and perform an
nslookup on the ip that is sending the request it resolves.  Running
tomcat 5.0.27 as a service.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: August 31, 2004 10:31 AM
To: Tomcat Users List
Subject: Re: Access Log Valve


On Tue, Aug 31, 2004 at 10:29:09AM -0400, Sinkinson,Andrew [NCR] wrote:
: Reply-To: Tomcat Users List [EMAIL PROTECTED]
:   I have enabled access logging by uncomment the Access Log Valve in
the
: server.xml file.  I have added the resolveHosts attribute and set it
to
: true.  I have also changed the pattern attribute to %h so that I can
: just get the  Remote host name in the log file.  In the access log
file
: I only get an ip address per request.  Any ideas on why I am not able
to
: resolve host names?

Just one -- perhaps the IPs in question do not resolve to hostnames.

Put another way, those IPs may not be resolvable from the Tomcat host.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Access Log Valve

2004-08-31 Thread Sinkinson,Andrew [NCR]

Forgot to enableLookups=true on the Connector.  By default it is set
to false :)
-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: August 31, 2004 10:31 AM
To: Tomcat Users List
Subject: Re: Access Log Valve


On Tue, Aug 31, 2004 at 10:29:09AM -0400, Sinkinson,Andrew [NCR] wrote:
: Reply-To: Tomcat Users List [EMAIL PROTECTED]
:   I have enabled access logging by uncomment the Access Log Valve in
the
: server.xml file.  I have added the resolveHosts attribute and set it
to
: true.  I have also changed the pattern attribute to %h so that I can
: just get the  Remote host name in the log file.  In the access log
file
: I only get an ip address per request.  Any ideas on why I am not able
to
: resolve host names?

Just one -- perhaps the IPs in question do not resolve to hostnames.

Put another way, those IPs may not be resolvable from the Tomcat host.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem adding access log valve.

2004-02-06 Thread Adam Hardy
Hi Mufaddal,

the accesslogvalve config requires a Valve / tag, not a Logger/ tag.

Check the exception messages carefully, normally they tell you. Also 
check your config against the documentation - I don't think 'timestamp' 
is a valid attribute for Valve/

HTH
Adam
On 02/05/2004 11:06 PM Mufaddal Khumri wrote:
Hi

I have the following in my server.xml

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
Logger className=org.apache.catalina.valves.AccessLogValve
 directory=logs/acesslogs
 pattern=%a %A %b %B %h %H %l %m %p %q %r %s %S %t %u 
%U %v
 prefix=access_log. suffix=.txt
timestamp=true/

Context path=/mywebapp docBase=mywebapp debug=0
 reloadable=true crossContext=true/
  /Host

I added the AccessLogValve above and now Tomcat does not start? What did 
I do wrong?

Tomcat works fine if I remove the accessvalvelog i added above.

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem adding access log valve.

2004-02-05 Thread Mufaddal Khumri
Hi

I have the following in my server.xml

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
Logger className=org.apache.catalina.valves.AccessLogValve
 directory=logs/acesslogs
 pattern=%a %A %b %B %h %H %l %m %p %q %r %s %S %t %u 
%U %v
 prefix=access_log. suffix=.txt
	timestamp=true/

Context path=/mywebapp docBase=mywebapp debug=0
 reloadable=true crossContext=true/
  /Host

I added the AccessLogValve above and now Tomcat does not start? What 
did I do wrong?

Tomcat works fine if I remove the accessvalvelog i added above.

Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Access Log Valve

2003-06-02 Thread Tyndall, David
Thanks Much worked GREAT

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:42 AM
To: Tomcat Users List
Subject: RE: Access Log Valve



Howdy,
Just comment it in server.xml.  It's commented out by default.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tyndall, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: Access Log Valve


Ok I have TOMCAT 4.1.8 running with no issues. I have it configured to
run on a win2k server as a service ( setup this way during install) I
would like to turn this logging feature on Access Log Valve. I know I
need to make changes to the registry but not too sure how to go about
it. located in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\
Services\ tomcat whatever.

WHAT do I add Someone must have already went through this.


Thanks

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Access Log Valve

2003-05-30 Thread Tyndall, David

Ok I have TOMCAT 4.1.8 running with no issues. I have it configured to
run on a win2k server as a service ( setup this way during install) I
would like to turn this logging feature on Access Log Valve. I know I
need to make changes to the registry but not too sure how to go about
it. located in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\
Services\ tomcat whatever.

WHAT do I add Someone must have already went through this.


Thanks

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Access Log Valve

2003-05-30 Thread Shapira, Yoav

Howdy,
Just comment it in server.xml.  It's commented out by default.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tyndall, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:40 AM
To: '[EMAIL PROTECTED]'
Subject: Access Log Valve


Ok I have TOMCAT 4.1.8 running with no issues. I have it configured to
run on a win2k server as a service ( setup this way during install) I
would like to turn this logging feature on Access Log Valve. I know I
need to make changes to the registry but not too sure how to go about
it. located in HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\
Services\ tomcat whatever.

WHAT do I add Someone must have already went through this.


Thanks

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CoyoteConnector (was Re: Access Log Valve)

2003-05-30 Thread Geralyn M Hollerman
Shapira, Yoav wrote:
 
 Howdy,
 Just comment it in server.xml.  It's commented out by default.

Question about some of those things commented out...the reference to a
CoyoteConnector as a Connector element is also commented out in the
server.xml I have - and I tried un-commenting it to use CoyoteConnector;
that gave me a ClassNotFound error in catalina.out - is there
something more I need to do to use Coyote?

Thanks!
-- 
Lynn Hollerman.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CoyoteConnector (was Re: Access Log Valve)

2003-05-30 Thread Shapira, Yoav

Howdy,
Why not just use the latest tomcat release?  It has the CoyoteConnector
by default.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Geralyn M Hollerman [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 10:48 AM
To: Tomcat Users List
Subject: CoyoteConnector (was Re: Access Log Valve)

Shapira, Yoav wrote:

 Howdy,
 Just comment it in server.xml.  It's commented out by default.

Question about some of those things commented out...the reference to a
CoyoteConnector as a Connector element is also commented out in the
server.xml I have - and I tried un-commenting it to use
CoyoteConnector;
that gave me a ClassNotFound error in catalina.out - is there
something more I need to do to use Coyote?

Thanks!
--
Lynn Hollerman.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CoyoteConnector (was Re: Access Log Valve)

2003-05-30 Thread Geralyn M Hollerman
Shapira, Yoav wrote:
 
 Howdy,
 Why not just use the latest tomcat release?  It has the CoyoteConnector
 by default.

At a later date, we may. But for right now, I would like to be able to
follow a HOW-TO that refers to uncommenting the CoyoteConnector to use
it, and uncommenting it gives me a ClassNotFound error about Coyote.
So is there something else I need to do to use Coyote?

Thanks!
-- 
Lynn Hollerman.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CoyoteConnector (was Re: Access Log Valve)

2003-05-30 Thread Bill Barker
The j-t-c Releases are very old.  There should be another j-t-c release
coming out in the next few weeks.  In the meantime, the safest bet is to do
a CVS checkout (using the coyote_10 tag, to get the stable version), and
build-from-source.  For any TC 4.1.x, it should be possible to grab the
'tomcat-coyote.jar', 'tomcat-http11.jar', and 'tomcat-util.jar' from the
4.1.24 dist, and copy them to their respective places.  This may, or may not
also work for TC 4.0.x.  TC 3.3.x users should really build-from-source.

Geralyn M Hollerman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Shapira, Yoav wrote:
 
  Howdy,
  Why not just use the latest tomcat release?  It has the CoyoteConnector
  by default.

 At a later date, we may. But for right now, I would like to be able to
 follow a HOW-TO that refers to uncommenting the CoyoteConnector to use
 it, and uncommenting it gives me a ClassNotFound error about Coyote.
 So is there something else I need to do to use Coyote?

 Thanks!
 --
 Lynn Hollerman.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Access Log valve

2002-11-20 Thread Reynir Hübner
Hi, 

I have configured an access log valve, it works ok, except it always makes one file 
per day, I would like to have one file for longer time-period. 
It would make it easyer to analize with the usual accesslog tools, such as AWStats, or 
webalizer. 

How do I configure it so that it's a one file only, but not one for each day ?

Thanx 
-reynir



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Access Log valve

2002-11-20 Thread Tim Funk
There is no way unless you either:
- extend AccessLogValve to do your bidding
- Use cron and shell scripting to massage your files into a format you like


-Tim

Reynir Hübner wrote:

Hi, 

I have configured an access log valve, it works ok, except it always makes one file per day, I would like to have one file for longer time-period. 
It would make it easyer to analize with the usual accesslog tools, such as AWStats, or webalizer. 

How do I configure it so that it's a one file only, but not one for each day ?

Thanx 
-reynir


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Access Log valve

2002-11-20 Thread Reynir Hübner
Ok, that's what I thought... 

Thanx.
-reynir




 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]] 
 Sent: 20. nóvember 2002 16:48
 To: Tomcat Users List
 Subject: Re: Access Log valve
 
 
 There is no way unless you either:
 - extend AccessLogValve to do your bidding
 - Use cron and shell scripting to massage your files into a 
 format you like
 
 
 -Tim
 
 Reynir Hübner wrote:
  Hi,
  
  I have configured an access log valve, it works ok, except 
 it always 
  makes one file per day, I would like to have one file for 
 longer time-period.
  It would make it easyer to analize with the usual accesslog 
 tools, such as AWStats, or webalizer. 
  
  How do I configure it so that it's a one file only, but not one for 
  each day ?
  
  Thanx
  -reynir
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]