users@glassfish.java.net

Re: Domain Log viewer url

From: Pavneet Kaur <Pavneet.Kaur_at_Sun.COM>
Date: Tue, 21 Oct 2008 16:35:53 -0500
We need to monitor the logs via Site Scope and/or Load runner. These tools directly hit the log files but our remote so cannot access via the file system.
Other alternative was to change the docroot but I haven't had much success with that either.  I tried setting the domain.xml but no change:

<virtual-server hosts="${com.sun.aas.hostName}" http-listeners="http-listener-1,http-listener-2" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
          <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
          <property name="alternatedocroot_1" value="from=/logs/* dir=${com.sun.aas.instanceRoot}"/>
          <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
          <property name="sso-enabled" value="false"/>
</virtual-server>

And the alternate root is not even listed in the asadmin GUI, see below:



Thanks,

P


Kedar Mhaswade wrote:
Right, doing docroot based copying/linking is fragile.

I know there is no RBAC in GlassFish admin yet, but I'd like
to know why a non-admin user would like to see server's log files?

-Kedar

Pavneet Kaur wrote:
All,

Creating a soft link doesn't work either :-(.

p

Jacob Kessler wrote:
Since the name of the log files won't change, can you add a link directly to the file?

Pavneet Kaur wrote:
Thanks for the response.
We need a web viewer hence a direct url would be useful. I tried adding a soft link to the logs directory under the docroot for the domain but that doesn't work.

- P


Jacob Kessler wrote:
The logs are stored as text files in glassfish/domains/{name of domain}/logs, though that will only work if you have read access to the directory that glassfish is installed in. Failing that, you could set up a link to those files from somewhere that you can read from.
Pavneet Kaur wrote:
All,

We need a way to be able to view the log files without logging into the asadmin GUI. Is there a direct url to the domain log files?

Thanks,

P --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net



picture
(image/jpeg attachment: 01-part)