WLST Script to rotate server log file

You can use the script below to rotate server log files using WLST



connect('weblogic','weblogic123','t3://localhost:7001')
serverRuntime()
cd('LogRuntime/AdminServer')
cmo.forceLogRotation()
print 'Log file rotated'

Leave a Reply