How can we obtain all sugarcrm_*.log files via Diagnostic Tools

Admin -> Diagnostic Tools provides the ability to include the SugarCRM Log File

However, it only returns the current sugarcrm.log file. Since the log rotates after a certain size. Is there a way to obtain all sugarcrm*.log files?

  • Hello  , 

    After some investigation, it seems there isn't a straightforward way to fetch all sugarcrm*.log files from the instance using the diagnostic tool.

    When reviewing modules/Administration/DiagnosticRun.php, it believe that the only way to tweak the function to scan and fetch multiple files would involve using functions that are not compatible with SugarCloud.

    Given this limitation, I believe the only viable option in this scenario is to download a full backup of the instance and access the previous logs from there.

    If you have any components of the application that are generating excessive logging, you might consider directing those logs to a separate location to reduce the load on sugarcrm.log.

    If you store those logs under the custom folder, you can then download them through the Diagnostic Tool's export feature.

    I hope this helps!

    Cheers,
    André