Maximo Open Forum

 View Only
  • 1.  How to configure Maximo's log files

    Posted 3 days ago

    When using the maximo.ear file deployed with WebLogic, the log files are output to the console after starting WebLogic, which is inconvenient to view. How can I put the log details in a directory for easier viewing?


    #Administration
    #MaximoApplicationSuite
    #MaximoForAviation
    #MaximoUserGroups
    #MaximoVisualInspection

    ------------------------------
    Ethan Williams
    secrecy
    ------------------------------


  • 2.  RE: How to configure Maximo's log files

    Posted 2 days ago

    Since you mentioned WebLogic you're still on 7.6. In the Logging application there is the ability to set the root logger directory (the directory you want the log files to go) along with the Manage Appenders dialog (for controlling the file names and structure, such as daily rolling or size-based rolling). Then on each logger (including the root logger if you want them all to inherit it) you can apply the appenders you want to use. For example, you can define an appender and apply it to only the sql logger. The only entries you would find in the log would be the ones from that logger. 



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------



  • 3.  RE: How to configure Maximo's log files

    Posted 2 days ago

    According to the IBM documentation, can this be achieved by configuring log.properties?



    ------------------------------
    Ethan Williams
    secrecy
    ------------------------------



  • 4.  RE: How to configure Maximo's log files

    Posted 2 days ago

    Unless you're using a really old version of Maximo, no. The logging configuration is managed in the Logging application (like assets, work order tracking, etc.) where you would log into Maximo web interface to configure it. If you don't see a Logging application you likely need to be granted security permission to view it. 



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------



  • 5.  RE: How to configure Maximo's log files

    Posted 2 days ago
    Edited by Ethan Williams 2 days ago

    I've set a root log directory using logging, but the generated maximo.log file doesn't output any logs. What I want to achieve is for all the content from the WebLogic console to appear in this log file, similar to the system.out log file.



    ------------------------------
    Ethan Williams
    secrecy
    ------------------------------



  • 6.  RE: How to configure Maximo's log files

    Posted yesterday
    Edited by Steven Shull yesterday

    For clarity, you will never get everything in the system.out in the Maximo logs because the Maximo logs will only contain logs that Maximo itself generates. I'm less familiar with WebLogic but in WebSphere, things like hung threads are output by the JVM (not the application). Those will only be in the SystemOut.log in WebSphere rather than the Maximo logs.

    To get Maximo logs to output to your file, you need to associate the appender to loggers. I tried to call this out in my first message but if you look at the Manage Maximo Root Logger 


    You can see what appenders are associated to it. You likely see Console here and would want to associate the Rolling appender (or whatever appender you defined in the Manage Appenders dialog) by clicking the button next to the appender. NOTE: we disable Maximo logs in 7.6 environments from writing to the SystemOut by removing the Console appender to leave it to only the WebSphere events/code that writes to the console rather than using a Maximo logger. 

    Once you're done with the changes, you must click the Apply Settings action. Log settings are maintained in a cache and it will not take effect unless you do this or restart the system.



    ------------------------------
    Steven Shull
    Naviam
    ------------------------------