CloudHub is MuleSoft's integration platform as a service (iPaaS) that enables the deployment and management of integration solutions in the cloud. Runtime Manager, CloudHub's management tool, provides an integrated set of logging tools that allow support and operations staff to monitor and troubleshoot application logs of deployed applications.
Currently, application log entries are kept for 30 days or until they reach a max size of 100 MB. Often we are required to keep these logs for greater periods of time for auditing or archiving purposes. Overly chatty applications (applications that write log entries frequently) may find their logs only covering a few days restricting the troubleshooting window even further. Runtime Manager allows portal users to manually download log files via the browser, however no automated solution is provided out-of-the-box.
The good news is, the platform does provide both a command line tool and management API that we can leverage. Leaving the CLI to one side for now, the platform's management API looks promising. Indeed, a search in Anypoint Exchangealso yields a ready built CloudHub Connector we could leverage. However upon further investigation, the connector doesn't meet all our requirements. The CloudHub Connector does not appear to support different business groups and environments so using it to download logs for applications deployed to non-default environments will not work (at least in the current version). The best approach will be to consume the management APIs provided by the Anypoint Platform directly. RAML definitions have been made available making consuming them within a mule flow very easy.
CloudHub is the platform as a service (PaaS) component of Anypoint Platform, providing a fully-managed, multi-tenanted, globally available, secure and highly available cloud platform for integration and APIs. With no hardware to maintain and continuous software updates, CloudHub delivers the benefits of true cloud-based integration.