Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logs in Weblogic on a server different than the admin server

I am very new to WebLogic.

I have a WebLogic domain in which there are 2 servers running one of which is the admin server and on both servers there are webservices that I am trying to test.

Whenever a request is sent to the url of the admin server, the output is showing in the server logs while when using that of the second server, nothing is showing although I configured the logging for both servers in the same way.

Appreciate any help.

EDIT :

Sorry I forgot to mention that I am using log4j for the webservices loggin

like image 943
wassim Avatar asked Jan 05 '13 15:01

wassim


People also ask

Where are WebLogic logs located?

By default, the server log file is located in the logs directory below the server instance root directory; for example, DOMAIN_NAME\ servers \SERVER_NAME\ logs \SERVER_NAME. log , where DOMAIN_NAME is the name of the directory in which you located the domain and SERVER_NAME is the name of the server.

What are the available logs created in WebLogic?

The logging implementation configured for WebLogic Server can be either Java Logging (the default), or Log4J Logging. When the appender receives an application log message, in the form of a org. apache.


1 Answers

As Viccari suggested, you should be able to find the logs in the following locations:

  • Server 1 node(Admin Server) :

    [WL home]/user_projects/domains/[your domain]/servers/AdminServer/logs
    
  • Server 2 node:

    [WL home]/user_projects/domains/[your domain]/servers/Server2_name/logs
    

Further, I would recommend starting the servers from the command-line and capture the output of those started processes into additional logging files, for example:

  • For AdminServer:

    [WL home]/user_projects/domains/[your domain]/startWeblogic.sh | tee log.AdminServer

  • For Server2:

    [WL home]/user_projects/domains/[your domain]/bin/startManagedWebLogic.sh server2_name t3://adminServer:7001 | tee log.server2_name

These logs will e.g. show you the output of System.out.println() called in your Webservices.

Also, have a look into the [WL home]/user_projects/domains/[your domain]/bin/startWeblogic.sh script and set the variable WLS_REDIRECT_LOG to a value pointing to a file where you want to store the Weblogic output.

like image 176
Aleš Avatar answered Oct 10 '22 07:10

Aleš