Using API mbean for HTTP Logging - WebServerLogMBean

This is a discussion on Using API mbean for HTTP Logging - WebServerLogMBean within the Weblogic forums in Application Servers & Tools category; I have been trying to configure http logging using API MBEANS. For some re= ason, the values are not being passed along. I am using WLST to call a .py to configure the values. For the general log= ging, it works without issue. Also, along the same format, how can logging be adjusted for the admin logs= .. Version WL: 10 ****SCRIPT***** import weblogic.management.configuration.LogMBean as LogMBean import weblogic.management.configuration.WebServerLogMBea n as WebServerLogM= Bean # This section creates the Log MBean and configures it for log rotation. create(managedServerName, 'Log') cd('Log/' + managedServerName) cmo.setRotationType(LogMBean.TIME) cmo.setFileName('logs/' + managedServerName + '.log') cmo.setFileCount(25) # This section ...

Go Back   Application Development Forum > Application Servers & Tools > Weblogic

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-09-2008, 02:25 PM
Andrew Woodall
Guest
 
Default Using API mbean for HTTP Logging - WebServerLogMBean

I have been trying to configure http logging using API MBEANS. For some re=
ason, the values are not being passed along.

I am using WLST to call a .py to configure the values. For the general log=
ging, it works without issue.

Also, along the same format, how can logging be adjusted for the admin logs=
..

Version WL: 10
****SCRIPT*****
import weblogic.management.configuration.LogMBean as LogMBean
import weblogic.management.configuration.WebServerLogMBea n as WebServerLogM=
Bean

# This section creates the Log MBean and configures it for log rotation.
create(managedServerName, 'Log')
cd('Log/' + managedServerName)
cmo.setRotationType(LogMBean.TIME)
cmo.setFileName('logs/' + managedServerName + '.log')
cmo.setFileCount(25)

# This section creates the WebServer Log MBean and configures it for log ro=
tation. HTTP LOGGING
cmo.setRotationType(WebServerLogMBean.TIME)
cmo.setFileCount(15)
cmo.setLogFileFormat(extend)
cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-take=
n")

*****END OF SCRIPT*****

Any help is appreciated.

--
Edited by woodalla at 06/09/2008 11:25 AM
Reply With Quote
  #2  
Old 07-09-2008, 08:49 PM
PeterB
Guest
 
Default Re: Using API mbean for HTTP Logging - WebServerLogMBean

Can you provide more info on what the problem is? What do you mean by
the values are not being passed along?

Andrew Woodall wrote:
> I have been trying to configure http logging using API MBEANS. For some reason, the values are not being passed along.
>
> I am using WLST to call a .py to configure the values. For the general logging, it works without issue.
>
> Also, along the same format, how can logging be adjusted for the admin logs..
>
> Version WL: 10
> ****SCRIPT*****
> import weblogic.management.configuration.LogMBean as LogMBean
> import weblogic.management.configuration.WebServerLogMBea n as WebServerLogMBean
>
> # This section creates the Log MBean and configures it for log rotation.
> create(managedServerName, 'Log')
> cd('Log/' + managedServerName)
> cmo.setRotationType(LogMBean.TIME)
> cmo.setFileName('logs/' + managedServerName + '.log')
> cmo.setFileCount(25)
>
> # This section creates the WebServer Log MBean and configures it for log rotation. HTTP LOGGING
> cmo.setRotationType(WebServerLogMBean.TIME)
> cmo.setFileCount(15)
> cmo.setLogFileFormat(extend)
> cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-taken")
>
> *****END OF SCRIPT*****
>
> Any help is appreciated.
>
> --
> Edited by woodalla at 06/09/2008 11:25 AM

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:30 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.