Set up logs forwarding for OVHcloud Connect

Pokaż jako Markdown

Forward your OVHcloud Connect event logs to Logs Data Platform for storage, querying, and visualisation

Objective

This guide explains how to enable forwarding logs from your OVHcloud Connect to Logs Data Platform (LDP), a platform that helps you store, archive, query and visualise your logs.

If you would like to find out more about Logs Data Platform before reading this guide, refer to the Logs Data Platform introduction guide.

Glossary

  • Logs Data Platform: a fully managed and secured log management platform by OVHcloud. For more information, consult the Logs Data Platform service page.
  • Data Stream: a logical partition of logs which you create in an LDP account and which you will use when ingesting, viewing or querying your logs. Multiple sources can be stored in the same data stream, and it is the unit that can be used to define a log pipeline (retention policy, archiving, live streaming, etc.), access rights and alert policies.
  • Logs forwarding: a feature integrated into an OVHcloud product to ingest the logs of its services into a Data Stream of an LDP account in the same OVHcloud account. This feature must be activated by the customer and per service.
  • Logs forwarding Subscription: when enabling the logs forwarding for a given OVHcloud service to a given LDP Data Stream, a Subscription is created and attached to the Data Stream for further management by the customer.

Requirements

  • A Logs Data Platform (LDP) account with at least one active Stream configured. This guide will walk you through all the necessary steps: Quick start for Logs Data Platform.
    • If you are not familiar with all the LDP Stream configuration possibilities, create a new one with the default options (indexing and websocket enabled, long-term storage disabled) for the purpose of this guide.
  • An up-and-running OVHcloud Connect service.
  • Both the LDP account and the OVHcloud Connect account must belong to the same OVHcloud account.

Log in to your and go to Network > OVHcloud Connect.

Concepts & limits

What are the logs of an OVHcloud Connect?

Log kinds

There are four different kinds of logs which can be forwarded:

  • service: Events related to the service's lifecycle (suspended, delivered, etc).
  • service_configuration: Events related to the service configuration, including adding or deleting DC/POP configurations.
  • bgp: Status of the BGP session.
  • interface: Events related to the optic fibre interface, including incoming and outgoing light.

Log contents

Field nameDescriptionType
kindThe kind of log forwardedString
messageAn explicit description of the logged eventString
neighborThe remote address in the subnet established between the OVHcloud Connect service and the PoPIP
service_uuidThe UUID of the OVHcloud Connect service concerned by the eventString
timestampThe timestamp at which the event was loggeddatetime (with millisecond resolution) e.g. 25/Mar/2024:14:07:19.536

Enabling OVHcloud Connect log forwarding using APIs

Note that the forwarding activation is free of charge, but you will be charged for the usage of the Logs Data Platform service as per the standard price plan. For LDP pricing, refer to this page.

You will have to define the targeted Stream of one of your LDP accounts to which you want your logs forwarded. The enablement of the forwarding will create a subscription for this stream id.

You can retrieve the API specifications in the OVHcloud API Portal:

Step 1 - Retrieve your target Stream (and ID)

List data streams of your Logs Data Platform account (enter your LDP ID in the form ldp-xx-xxxx into the field "serviceName"):

Get the details of a data stream:

Step 2 - Create your subscription

Use the following API call to create a subscription:

Info

You will need to replace:

  • serviceName: this is the internal name of your OVHcloud Connect service, you can find it in the OVHcloud Connect management page in the OVHcloud Control Panel or using the following API call:
GET/ovhCloudConnect

The POST request has a payload that requires:

  • kind: the kind of log you want to forward, among "service", "service_configuration", "bgp" and "interface".
  • streamId: the target data stream of your LDP account where you want your OVHcloud Connect logs to be forwarded to.
Info

You can find the available kinds using the following API call:

POST /ovhCloudConnect/{serviceName}/log/subscription
{
  "kind": "string", // "service", "service_configuration", "bgp" or "interface"
  "streamId": "198ef9d5-c320-4000-8bee-236623da5b80" // The streamID of the targeted Stream.
}

You will get in response an operationId:

{
  "operationId": "f550aa1c-89ab-4b1a-81ae-4fba4959966f",
  "serviceName": "occ-xxxxx"
}

You can use the operationId to retrieve the subscriptionId for further management purposes using the following API call:

Alternatively, once the operation is finished, the subscriptions can be retrieved using the following API call:

Once you have the subscriptionId, you can get the details using the following API call:

GET /ovhCloudConnect/{serviceName}/log/subscription/{subscriptionId}

{
"createdAt": "2025-08-28T07:42:50.645Z",
"kind": "string",
"resource": {
  "name": "string",
  "type": "string"
},
"serviceName": "string",
"streamId": "string",
"subscriptionId": "198efa11-f150-4000-8e8d-871b1e482b80",
"updatedAt": "2025-08-28T07:42:50.645Z"
}

How to use OVHcloud Connect logs

Now that your logs are ingested and stored in your Logs Data Platform data stream, you can query your logs and build dashboards to have a graphical representation of your logs using the web-based UI of Graylog.

  • In the OVHcloud Control Panel, retrieve the LDP username (ex: logs-xxxx) and its password in your Logs Data Platform account home page. You can refer to the Quick start guide for Logs Data Platform.
  • Open the Graylog web-ui. You can retrieve the link in your account home page or using your Access point depending on your account region (for example: Gravelines region is https://gra1.logs.ovh.com/).
  • Log into Graylog using your Logs Data Platform Username and Password.
  • Search through your logs across the data stream of your Logs Data Platform account. You can refer to Graylog writing search queries documentation for details on search syntax.

Refer to the following documentation: Logs Data Platform - Visualising, querying and exploiting your logs for more details about how to use your logs with Logs Data Platform, including how to:

  • set up alerts
  • view the logs in real time through a WebSocket
  • build visualisations with OpenSearch Dashboards
  • integrate with OpenSearch API
  • connect with Grafana

How to manage your subscriptions

At any time, you can retrieve the subscriptions attached to your Logs Data Platform data stream and choose to disable the forwarding by cancelling your subscription on your stream, so that your Logs Data Platform stream no longer receives your audit logs.

Note that this does not delete the logs stored before the subscription was cancelled, as the data stored in a log stream is immutable unless you delete the entire stream.

To delete your subscription you can use the following API call:

What's next?

Go further

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 analyzed by our experts.

Join our community of users.

Czy ta strona była pomocna?