Solved

weblogic log rotation

Posted on 2007-03-13
7,138 Views
Last Modified: 2013-12-10
Weblogic 8.
Currently redirecting stdout and stderr of a JVM from inside the startscript to a file (via 2>&1). Looking into using instead:
-Dweblogic.Stdout="stdout-filename"
-Dweblogic.Stderr="stderr-filename"
But have some questions:
1> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?
2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

0
Question by:sparks1984
    3 Comments
     
    LVL 30

    Expert Comment

    by:mayankeagle
    >> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?

    I think there should be no issue.
    0
     
    LVL 13

    Accepted Solution

    by:
    > Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?

    We do this all the time - and there really is no issue.

    2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

    As far as I know weblogic 8 does not provide a way to rotate the logs.. However if you are on Unix, you do have the utility logrotate which you can use (try man logrotate to read more about this):

    From "man logrotate":

    DESCRIPTION
           logrotate is designed to ease administration of systems that generate large numbers of log
    files.  It allows automatic rotation, compression, removal, and mailing of log files.  Each log
    file may be han­dled daily, weekly, monthly, or when it grows too large.
    0
     
    LVL 30

    Expert Comment

    by:mayankeagle
    Hadn't I answered half the Q ;-) ?
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
    This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

    931 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now