For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/es/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/es/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/es/guides/public-cloud/databases/logs-to-customers.md.
Ir al contenido

Set up logs forwarding for Public Cloud Databases

Ver como Markdown

Forward logs of your Public Cloud database service to your Logs Data Platform data stream

Objective

Public Cloud managed databases allow you to send logs of your service to your own Logs Data Platform (LDP) data stream.

This guide explains how to forward service logs to your own LDP stream from the OVHcloud Console or with the OVHcloud API.

Requirements

  • A Public Cloud database service up and running
  • To use the API: access to the
  • A Logs Data Platform account within this OVHcloud account with at least one destination stream configured
    • If you are not familiar with all the LDP Stream configuration possibilities, simply create a new one with the default options (indexing & websocket enabled, long-term storage disabled) for the purpose of this guide.
  • A running database service

OVHcloud Console Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > Databases

Instructions

Create your subscription

Via the OVHcloud Console
Via the OVHcloud API

On your database service page, open the Observability tab, then the Logs view. Click Manage streaming. If your service exposes several log kinds, first select the kind to forward in the list of the Logs view: the panel manages one log kind at a time.

In the Manage log streaming panel, under Subscribe to a stream, select your LDP account and the Stream, then click Subscribe.

The subscription is listed under Current subscriptions and the logs start to be forwarded to your LDP stream. If your service exposes several log kinds, repeat the operation for each kind you want to forward.

Find logs in Graylog

On the LDP page, click the sample-data-stream button (the last data stream modified when you previously subscribed to it), or click the Graylog button.

You need to log in using your Graylog credentials. You can retrieve them from the LDP details page, in the Configuration section. The login corresponds to the value shown on the Logs Data Platform service line, and the password is displayed under Password.

Once connected, you can view your service logs in your Graylog stream.

LDP database graylogs result

You can also use the following Graylog queries for more granular filtering:

MongoDB

Query: cluster: "<HostID>"

You can find this HostID in the OVHcloud Console:

  • Open the Overview tab of your MongoDB service
  • In the Connection details card, the Host field has the format <HostID>.database.cloud.ovh.net

Other Engines

Query: clusterID: "<Engine>-<HostID>"

You can find this HostID in the OVHcloud Console:

  • Find the Service ID (in the General information card of the Overview tab), formatted as a UUID (AAAAAAAA-BBBB-CCCC-DDDDDDDDDDDD)
  • HostID is the first part of the UUID (AAAAAAAA)

Delete subscription

You have 2 methods to delete a subscription:

Via the OVHcloud Console
Via the OVHcloud API

In the Manage log streaming panel of the Observability tab (Logs view > Manage streaming; if the service exposes several log kinds, select the kind first), click Unsubscribe on the subscription in Current subscriptions, then Confirm.

  • If you delete your database service, all subscriptions of this service are deleted automatically.

We want your feedback!

We would love to help answer questions and appreciate any feedback you may have.

For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.

Are you on Discord? Connect to our channel at https://discord.gg/ovhcloud and interact directly with the team that builds our databases service!

¿Le ha resultado útil esta página?