tag:blogger.com,1999:blog-1839316484051079047.post5449006828970291096..comments2024-03-28T06:38:40.958+01:00Comments on Java / Oracle SOA blog: Change the log files location of a WebLogic DomainEdwin Biemondhttp://www.blogger.com/profile/02338716126881111629noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-1839316484051079047.post-60221058423248431632016-08-18T11:28:40.505+02:002016-08-18T11:28:40.505+02:00Hi Edwin,
As suggested in the above comment i hav...Hi Edwin,<br /><br />As suggested in the above comment i have added the below snippet in /etc/logrotate.conf<br /><br />(location of logs directory)/*.out {<br />copytruncate<br />rotate 5<br />size=10M<br />}<br /><br />This Script works fine till the rotation, but after .out file is rotated server is not able to write to the .out it is remaining at the size 0KB. <br />Can you please let me knowvishnu vardhanhttps://www.blogger.com/profile/11114300173996283676noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-61627125772882603572015-08-25T00:36:30.805+02:002015-08-25T00:36:30.805+02:00Hi Jacco,
Do you know if it's possible to set...Hi Jacco,<br /><br />Do you know if it's possible to set these same values (FileCount, RotationType, etc.) as arguments in the Server Start tab > Arguments field of the Managed Server?<br /><br />For some reason, after adding those two arguments to my Managed Server start (-Dweblogic.stdout and -Dweblogic.stderr, pointing them to my .log), I lost control of this log file, that I used to Daniel Lacherhttps://www.blogger.com/profile/13524302038337734199noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-27736805113151173692015-02-19T08:34:38.659+01:002015-02-19T08:34:38.659+01:00Hi,
I have deployed my adf application on weblogi...Hi,<br /><br />I have deployed my adf application on weblogic 10.3.5 instance.<br /><br />In my code, i have mentioned to generate log statements "application.log" file in log4l.xml.<br /><br />But unfortunately, log statements are generated in "portalNodeName.out" file.<br /><br />Could you please help me out?<br />Rahul Jagtaphttps://www.blogger.com/profile/10907956586867926797noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-62028260023062052602015-02-19T08:34:14.716+01:002015-02-19T08:34:14.716+01:00Hi,
I have deployed my adf application on weblogi...Hi,<br /><br />I have deployed my adf application on weblogic 10.3.5 instance.<br /><br />In my code, i have mentioned to generate log statements "application.log" file in log4l.xml.<br /><br />But unfortunately, log statements are generated in "portalNodeName.out" file.<br /><br />Could you please help me out?<br /><br />Rahul Jagtaphttps://www.blogger.com/profile/10907956586867926797noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-45387073688069395772013-12-09T17:13:16.238+01:002013-12-09T17:13:16.238+01:00Hi,
with the FMW ( odl ) log configuration you ca...Hi,<br /><br />with the FMW ( odl ) log configuration you can do what you want. <br />maybe this can help <br /><br />http://docs.oracle.com/cd/E23943_01/core.1111/e10105/logs.htm#CHDDEEBF<br /><br />Thanks Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-89014394459584193392013-12-06T18:11:50.360+01:002013-12-06T18:11:50.360+01:00Thanks for the post ! Once again, a very useful me...Thanks for the post ! Once again, a very useful message.<br />Maybe a bit "out of the scope" but, is there a way to split the managed server's log into 2 files, one containing ERROR and INCIDENT_ERROR logs and the other containing the rest of the logs ? Or, at least, is there a way to isolate in a file ERROR and INCIDENT_ERROR logs even if they are also in the "normal" Anonymoushttps://www.blogger.com/profile/09578813505681998825noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-32680487388147130512013-10-07T08:33:04.062+02:002013-10-07T08:33:04.062+02:00Thanks for the blog. It is helpful.....Thanks for the blog. It is helpful.....Vikrant Kordehttps://www.blogger.com/profile/08526216714875176731noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-13821819847009932722013-08-19T15:11:38.094+02:002013-08-19T15:11:38.094+02:00Hi,
only with EM and with WLST and you need to us...Hi,<br /><br />only with EM and with WLST and you need to use the wlst.sh of the oracle_common home.<br /><br />here you got the script <br />https://raw.github.com/biemond/puppet/master/modules/wls/templates/wlst/changeFMWLogFolder.py.erb<br /><br />thanks<br /><br />Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-72774067189491723542013-08-16T15:33:47.342+02:002013-08-16T15:33:47.342+02:00Hello Edwin!
As always, nice article! Question, i...Hello Edwin!<br /><br />As always, nice article! Question, is it possible to change diagnostic-logging rotation strategy outside the Enterprise Manager? I mean, using Weblogic console.<br /><br /><br />Thanks in advance,<br />Renan.Renan Monteiro's Sharepointhttps://www.blogger.com/profile/14170907780262017802noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-53110725170111788612012-09-03T11:44:06.676+02:002012-09-03T11:44:06.676+02:00Hi Edwin,
How can we rotate *.out log file at wind...Hi Edwin,<br />How can we rotate *.out log file at windows platform.Anonymoushttps://www.blogger.com/profile/02969608708678644655noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-3059572157019537592012-06-27T10:29:29.337+02:002012-06-27T10:29:29.337+02:00Hi Edwin,
This is really nice blog, I got useful...Hi Edwin, <br /><br />This is really nice blog, I got useful information but in my domain under adminserve/log directory I could see one more log file -gc.log. <br /><br />In server start property nothing is given, I don't know from where this file is getting generated, I want to move this file lcoation as well. <br /><br />Regards.. <br />ManishManish Kumar Guptahttps://www.blogger.com/profile/02928528074366288273noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-38141352708898227642012-06-24T13:12:26.089+02:002012-06-24T13:12:26.089+02:00Hi,
.out are generated by the nodemanager and thi...Hi,<br /><br />.out are generated by the nodemanager and this does not support rotating files. On unix you have some options like in this blogpost<br />http://robin4444.blogspot.nl/2011/11/rotate-out-log-files.html<br /><br />with unix scripting and contrab you should come far.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-54280316616969100002012-06-20T12:38:49.502+02:002012-06-20T12:38:49.502+02:00is there a way to delete .out and .log files in th...is there a way to delete .out and .log files in the future(means we have got .log and .out file today and tomo if we wish to remove the yesterday generated files).Is this option possible.<br />and that should has to be using program. is that possible.. please helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-57433337452677593122012-04-11T21:37:20.207+02:002012-04-11T21:37:20.207+02:00Hi,
I don't saw a mbean which can do this for...Hi,<br /><br />I don't saw a mbean which can do this for you. So I don't think so<br /><br />ThanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-68263685711973473312012-04-09T12:57:48.836+02:002012-04-09T12:57:48.836+02:00hi Edwin
Is there any way to access the logs of t...hi Edwin<br /><br />Is there any way to access the logs of the weblogic server programatically.<br />I want to access the logs of a weblogic server using java class but have to idea how to do it..<br />please helpnbnhttps://www.blogger.com/profile/04699051490843648001noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-19293274387205642722011-10-29T17:46:05.856+02:002011-10-29T17:46:05.856+02:00Hi,
That is not possible, you can only shrink it...Hi, <br /><br />That is not possible, you can only shrink it and need to put this in a schedular / cron<br /><br />By default Weblogic wont have options to rotate the *.out file, If you are running in unix or Linux boxes, you can add the following snippet <br /><br />under /etc/logrotate.conf file append a function to handle *.out files<br /><br /><>/*.out {<br />copytruncate<br />rotate<brEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-83833108516981781842011-10-29T17:35:52.766+02:002011-10-29T17:35:52.766+02:00Hi,
thanks for this good overwiew.
There is one...Hi,<br /><br />thanks for this good overwiew. <br /><br />There is one thing missing. Every Admin always asks: Where/How to control the rotation policy of the server1.out and server1.out00001 (if MSs started by NodeManager)<br /><br />Is it possible?Anonymoushttps://www.blogger.com/profile/04129837159001672919noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-28162931028567097442011-10-09T14:26:24.408+02:002011-10-09T14:26:24.408+02:00Or... use ListLogHandlers() & ConfigureLogHand...Or... use ListLogHandlers() & ConfigureLogHandler() in WLST to change ODL logpath<br />Filling up your filesystems won't happen if you set a retentionperiod and max files to rotateMichel Schildmeijerhttp://technology.amis.nl/blog/author/michel_snoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-28151368610190300672011-09-07T07:32:57.622+02:002011-09-07T07:32:57.622+02:00Hi,
How to get this weblogic configuration page?Hi,<br />How to get this weblogic configuration page?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-2296947400040049652011-08-08T20:04:02.481+02:002011-08-08T20:04:02.481+02:00Thanks Jacco.
always handy.Thanks Jacco.<br /><br />always handy.Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-27306656970772762532011-08-08T10:35:24.808+02:002011-08-08T10:35:24.808+02:00Psst..
---------
connect('weblogic','s...Psst..<br />---------<br />connect('weblogic','secret_password','t3://localhost:7001')<br />edit()<br />startEdit()<br />svrs = adminHome.getMBeansByType('Server')<br />for s in svrs:<br /> name = s.getName()<br /> cd('/Servers/' + name + '/Log/' + name)<br /> cmo.setRotationType('byTime')<br /> cmo.setRotationTime('00:00')<Jacco H. Landlusthttps://www.blogger.com/profile/11018846436564445465noreply@blogger.com