Compose is a private, Database-as-a-Service (DBaaS) platform for securely hosting and managing shared and dedicated MongoDB instances. Compose has a new add-on which lets you send logs to Loggly via Syslog-ng. This add-on is currently available for Elasticsearch, Redis, PostgreSQL and RethinkDB. This setup requires that you have an active account for Compose and Loggly.
To set up Syslog-ng logging on your database go to the Compose dashboard at app.compose.io and select the deployment on which you want to configure logging. That can be any Elasticsearch, Redis, PostgreSQL or RethinkDB deployment. From the bottom of the side-bar, select the Add-ons view.
For our listed databases, there will currently be two panels on this view. We are interested in Syslog-NG.
Select the Loggly service from the drop down and enter the information below:
Token: Loggly Customer Token
Before you press Add Syslog-NG bear in mind the warning that when you add the Syslog-NG capsule, there will be a rolling restart of the database to enable the logging to be installed. Make sure your application will not be affected by this restart, either by scheduling during quiet periods or by using database calls which can handle rolling restarts.
When you are ready, click Add Syslog-NG and a new capsule will be provisioned to forward all logs to Loggly.
If you return to Loggly, you should see all the logs for that database coming through.
- There are a number of Addons available for Compose database deployments – availability varies according to database type.
If you don’t see any data show up in the verification step, then check for these common problems.
- Wait a few minutes in case indexing needs to catch up
- Please check if the connection host is specified correctly as logs-01.loggly.com:6514
- Search or post your own Compose logs questions in the community forum.
When the APM Integrated Experience is enabled, Loggly shares a common navigation and enhanced feature set with the other integrated experiences' products. How you navigate Loggly and access its features may vary from these instructions. For more information, go to the APM Integrated Experience documentation.