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/data-analytics/analytics/logs-to-customers.md.

Set up logs forwarding for Analytics

Ver como Markdown

Find out how to forward logs of your Analytics service to your Logs Data Platform data stream

Objective

Analytics services 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 with the OVHcloud API.

Requirements

  • An Analytics service up and running
  • 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 Analytics service

OVHcloud Control Panel Access

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

Instructions

Step 1 - Retrieve the required information

Retrieve your LDP destination streamId:

  • In the go to the LDP page.
  • Go to the Data stream tab.
  • Choose your target stream and click on Copy stream ID.

Retrieve your LDP destination serviceName:

  • It refers to your Public Cloud project ID.

Retrieve your clusterId:

  • Go to your Analytics service and retrieve your Cluster ID from the related field.

Step 2 - Create your subscription

Use the following API call:

Replace kafka in the route with your service's engine (for example opensearch or grafana).

body : {
    streamId: <LDP destination stream ID>
}

The logs will start to be forwarded to your LDP stream.

Find logs in Graylog

To find logs of your service in your Graylogs stream you can use the following Graylog queries:

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

You can find this HostID in your OVHcloud Control Panel:

  • Find the Cluster ID formatted as a UUID (AAAAAAAA-BBBB-CCCC-DDDDDDDDDDDD)
  • HostID is the first part of the UUID (AAAAAAAA)

Delete subscription

There are 2 methods to delete a subscription:

  • You can delete subscriptions using the subscriptionId concerned and this API call:
  • If you delete your Analytics 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 Analytics service!

Join our community of users.

¿Le ha resultado útil esta página?