weblogic log rotation

    Question by:
    On

    Topics:

    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?

    Good Question?
    0
     

    ?

    The member who asked this question verified this comment provided the solution that solved their problem.

    Accepted Solution on 2007-03-14 at 05:32:39ID: 18717746

    > 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.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201511-LO-Qu-074

    Extend your technology team with the Experts Exchange community.

    — trusted by —

    Who answers my questions?Our community has technology experts around the world.

    Radek Baranowski

    2

    Articles

    160

    Solutions

    Expert in:

    • Java App Servers
    • PHP

    jjimen

    1

    Articles

    26

    Solutions

    Murali Murugesan

    2

    Articles

    274

    Solutions

    Expert in:

    • JSP
    • HTML
    • Java
    • Java EE

    Kent Dyer

    4

    Articles

    525

    Solutions

    Expert in:

    • MS SQL Server
    • MS SQL Server 2008
    • Windows Server 2008

    AdminRAM

    4

    Articles

    70

    Solutions

    Expert in:

    • Java App Servers

    Rajeshpola

    1

    Articles

    17

    Solutions

    rdm4u

    1

    Articles

    20

    Solutions

    RELATED TOPICS view all topics

    1. Java
      (98,149)
    2. Java EE
      (16,907)
    3. Apache Web Server
      (19,917)
    4. Oracle Database
      (77,135)
    5. Application Servers
      (2,666)
    6. JSP
      (15,369)
    7. Web Servers
      (32,318)
    8. Editors IDEs
      (25,093)
    9. Web Applications
      (14,208)
    10. Linux
      (64,227)