We are using Weblogic 10 on sunsolaris(unix). we are very frequently seeing teh server out file getting filled quickly and we have to stop, remove the out file and start the servers. Is there any way we can make this weblogic it self take care, means rotate as it does to log files.
Follow this instructions:
1) Set -Dweblogic.log.RedirectStdoutToServerLogEnabled=true in your start script.
2) Login your Weblogic Domain and go to Enviroment--Server--Server_x--Loging--General
3) Set your rotation type and "Limit number of retained files" parameters.
4) Restart the manage server.
You should do all steps for your all manage servers.
I have tried this and it works for the logs named .log but the .out logs in the \domain\server folders don't seem to get this same result. In the .out section of the console logging tab it doesn't seem to have a way to restrict the number and size of the .out files. You would think if you check the box to enable stdout logging to go to the weblogic logs then it would not even create a .out log.....but that;s not true by my testing.
Have a look at the wlscontrol.sh file in $WL_HOME/common/bin
There's a function which you can use to rotate the out logs:
# Rotate the specified log file. Rotated log files are named
# <server-name>.outXXXXX where XXXXX is the current log count and the
# highest is the most recent. The log count starts at 00001 then cycles
# again if it reaches 99999.
if [ "$logCount" -eq "99999" ]; then
René van Wijk a very popular and active contributor to the Oracle Forums has written a brilliant post about the same here
Please follow the same for Solaris or Linux. For windows it would be perhaps using windows services
René 's profile on Oracle Forum - https://forums.oracle.com/forums/profile.jspa?userID=525850