Oracle Weblogic Server (MOSC)

MOSC Banner

WLST Question

edited Jul 16, 2013 12:46PM in Oracle Weblogic Server (MOSC) 1 commentAnswered ✓
 
Hi,

We are using a WLST script to create and configure a WLS domain and included in that script is a section where we set up the “logging” configuration for the various servers.  One of the attributes we are attempting to set is to “limit the number of log files”.  Below is an excerpt of the script we are using to accomplish the task.

 

cd('/Servers/'+adminServerName+'/Log/'+adminServerName)

cmo.setRotationType('bySize')

cmo.setNumberOfFilesLimited(true)

cmo.setRotateLogOnStartup(true)

 

After running the script that contains the above excerpt we then start the AdminServer and access the WLS console.  When we look at the logging attributes for the server we configured, the “rotation type” is properly set but the “Limit number of retained files” configuration attribute is not set.  My question is this:  Do you have to set the “NumberOfFilesLimited” attribute using WLST “online” in order for this to work?  I seem to recall that you can only set certain attributes in “online” mode and what I’m asking is “is this one of those attributes that requires us to be

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center