DX Application Performance Management

 View Only
  • 1.  EPAgent Question

    Posted Dec 11, 2017 03:55 PM

    In the epactrl.sh script for epagent it has a line for "LOGFILE=/wily/epa.log" There are no settings available to rotate out this log as there is for the IntroscopeEPA.log in the IntroscopeEPAgent.properties file. Is there a way to control the epa.log log size and rotate it out?



  • 2.  Re: EPAgent Question
    Best Answer

    Broadcom Employee
    Posted Dec 11, 2017 03:58 PM

    You could use logrotate or send it to /dev/null if you're on *nix.

     



  • 3.  Re: EPAgent Question

    Posted Dec 12, 2017 03:47 PM

    Thank you. I will suggest to our customer to try going this route



  • 4.  Re: EPAgent Question

    Broadcom Employee
    Posted Dec 12, 2017 11:00 AM

    Hi Keith,

     

    Just a note to welcome you to the APM Community.  We look forward to your participation here and feel free to ask any follow-up or new questions.

     

    Regards,

    Matt



  • 5.  Re: EPAgent Question

    Posted Dec 14, 2017 01:32 PM

    Hi Keithrd,

     

    We saw the same things so we made several configuration changes:

    1. We removed the references to "$LOGFILE" and sent everything to "$LOGFILE1" in the EMCtrl.sh 

     

    2. Within the EMCtrl.sh, We redirected "$LOGFILE1" to 

       LOGFILE1="${WILYHOME}/logs/IntroscopeEnterpriseManager.log"

     

    3. Within the IntroscopeEnterpriseManager.properties, we removed all references to "console" or replace it with "logfile" if the log4j line did not have it.  This would prevent having double log lines.

     

    This gave the EMCtrl.sh file a way to send log messages to the "IntroscopeEnterpriseManager.log" before the Java Log4J system was initialized, and the IntroscopeEnterpriseManager.log file already had the Log4J log rotation.  This kept the start up log messages all in one log instead of having to hunt through two logs to determine what happened. 

     

    Thought this was far better than using or developing our own log rotation system.



  • 6.  Re: EPAgent Question

    Broadcom Employee
    Posted Dec 14, 2017 02:57 PM

    Thank you Billy for sharing your "real world" and useful approach!