Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are the Glassfish access logs

Where are the glassfish access logs located? I would expect them to be in domains/domainX/logs. Is there a setting I need to change to activate access logging?

Thanks

like image 784
Captain Giraffe Avatar asked Mar 15 '11 07:03

Captain Giraffe


People also ask

How do I open the admin console in GlassFish?

To start the Administration Console, type the URL in your browser. If prompted, log in to the Administration Console. You will be prompted to log in if you chose to require an administration password at the time GlassFish Server was installed.

What is domain in GlassFish server?

A domain is an administrative boundary that contains a group of GlassFish Server instances that are administered together. Each instance can belong to only one domain. A domain provides a preconfigured runtime for user applications.


1 Answers

the path seems correct, have a look at this link http://blog.igorminar.com/2009/12/configuring-common-access-log-format-in.html It shows where you enable access logging in glassfish


In case of dead link...

In your GlassFish console you can change the access log format to common or combined

glassfish console

You can also use asadmin to make this config change:

asadmin set server.http-service.access-log.format="combined"

After a restart the log now uses the requested format:

0:0:0:0:0:0:0:1%0 - - [21/Dec/2009:07:42:45 -0800] "GET /s/1722/3/_/images/icons/star_grey.gif HTTP/1.1" 304 0
0:0:0:0:0:0:0:1%0 - - [21/Dec/2009:07:42:45 -0800] "GET /images/icons/add_space_32.gif HTTP/1.1" 304 0
0:0:0:0:0:0:0:1%0 - - [21/Dec/2009:07:42:45 -0800] "GET /images/icons/feed_wizard.gif HTTP/1.1" 304 0
0:0:0:0:0:0:0:1%0 - - [21/Dec/2009:07:42:45 -0800] "GET /images/icons/people_directory_32.gif HTTP/1.1" 304 0
like image 154
konstructor Avatar answered Oct 05 '22 19:10

konstructor