For AI agents: the complete documentation index is available at https://docs.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.ovhcloud.com/en/guides/public-cloud/cross-functional/logs-concepts.md.
Skip to content

Introduction to Public Cloud Logs

View as Markdown

Discover how Public Cloud services generate, collect, and forward logs to Logs Data Platform across OVHcloud services

Objective

This guide helps you understand the concepts and usage of logging in OVHcloud Public Cloud. It explains how logs are generated, collected, and consumed, and provides links to detailed guides for subscribing to logs from each Public Cloud service (Compute, Block Storage, Load Balancer, etc.).

What are Public Cloud Logs?

Public Cloud services generate logs that can help you monitor, troubleshoot, and analyse your cloud infrastructure.

Each service may offer different types of logs, known as kinds (e.g., access, audit, error), which can be consumed and stored according to your needs.

Requirements

Use cases

Application troubleshooting

Public Cloud logs help you troubleshoot application and infrastructure issues by giving access to logs generated by your services. You can filter and search these logs to identify anomalies and errors, which makes diagnosing and resolving problems more efficient. In distributed cloud architectures, logs from different services can be correlated to get a complete view of your environment.

Security and data compliance

Public Cloud logs help you detect security incidents, track administrative actions, and support compliance with certifications and regulatory requirements. By keeping a record of operations and access events, logs provide essential evidence for audits and security investigations.

Depending on the service and the log destination you choose, access to logs can be restricted using fine-grained permissions. This allows you to control who can view or manage specific logs, strengthening your security posture and improving overall data governance.

Infrastructure monitoring

Public Cloud logs provide valuable insights into the health and behaviour of your infrastructure. By analysing service and system logs, you can detect abnormal patterns, errors, or performance issues and react before they impact your workloads or users.

Depending on the tools and destinations you use to consume your logs, you can build monitoring workflows such as alerts or visualizations to better understand the activity of your Public Cloud services and share this information across your teams.

Compatible Public Cloud services

The following table lists the Public Cloud services that currently provide logs and explains where to find the corresponding guides to enable or retrieve them. Availability and capabilities may vary depending on the service. This list will be updated as new services become compatible.

Product nameAvailabilityGuide link
Public Cloud - ComputeOVHcloud Console & APIUnderstanding OpenStack API logs
Public Cloud - Block StorageOVHcloud Console & APIUnderstanding OpenStack API logs
Public Cloud - NetworkOVHcloud Console & APIUnderstanding OpenStack API logs
Public Cloud - Managed Kubernetes ServiceOVHcloud Console & APIManaged Kubernetes Service Audit Logs Forwarding
Public Cloud - Load BalancerOVHcloud Console & APIPublic Cloud Load Balancer TCP / HTTP / HTTPS Logs Forwarding
Public Cloud - Managed DatabasesOVHcloud Console & APIPublic Cloud Databases - How to setup logs forwarding
Public Cloud - AnalyticsOVHcloud Console & APIAnalytics - How to setup logs forwarding

OVHcloud Console Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project > Project Management > Logs

Instructions

On the product side

On Public Cloud services that provide logging capabilities, you can access logs from the OVHcloud Console through a dedicated Logs tab. This tab allows you to view available logs and configure how they are collected or forwarded.

To open the Logs tab of your project:

  1. In the left-hand menu of your Public Cloud project, click Project Management.
  2. Click the Logs tab.
  3. In the Region selector at the top of the tab, select the region whose logs you want to see.

The same Logs tab is available on the page of each compatible service.

The tab is not split into separate panels. The live logs are displayed under a toolbar, and your subscriptions are managed in a separate panel that you open by clicking Configuration.

Live logs

The Logs tab displays the logs of this service in real time, across the full width of the page. Each line shows the date, the time, the level and the message. It is useful to have a quick overview of the ongoing activity on this service.

The toolbar above the logs lets you control the live view:

  • Click Pause to pause the live display.
  • Click Clear session to empty the current session.
  • Type a term in the Highlight an item search field to highlight the matching lines.

The view follows the latest lines as they arrive.

Subscriptions

You can subscribe to this service's logs to make them available in your Logs Data Platform account, in the data stream(s) of your choice. Subscriptions are not listed next to the logs: they are managed from a separate panel.

To subscribe to a data stream:

  1. On the Logs tab, click Configuration. A panel opens on the right of the page, titled with the name of the service.
  2. Check the Observability service region shown at the top of the panel.
  3. In the Observability service list, select your Logs Data Platform account. The list also shows the status of the account.
  4. Optionally, type a name in the Search field to filter the data streams.
  5. The panel lists the data streams of the selected Logs Data Platform account, one entry per data stream, showing its name and its ID. On the data stream in which you want this service's logs to be available, click Subscribe to start sending logs to it.

To subscribe to several data streams, click Subscribe on each of them.

To stop sending logs to a data stream, remove the subscription from the Logs Data Platform side, as described in the On the Logs Data Platform side section.

You can choose to create multiple subscriptions for a given service, to have its service logs available in multiple data streams. This is useful for use cases detailed later in this guide.

Info
  • Only the service logs generated after the subscription creation will be available in your data stream.
  • If you choose to unsubscribe, the logs already sent to your data stream will remain; they will only be deleted when they reach your stream's configured retention. You just won't see newly generated logs.
  • Logs Data Platform is pay-as-you-go: you pay for the amount of logs sent in your data stream. If you subscribed to a product that generates no logs (because it has no activity), you won't pay anything.

Logs kinds

A Public Cloud service can offer several log types, called kinds. When a product has more than one log kind, a log type selector appears above the live logs, and the view becomes contextualised to the selected kind.

For example, the Logs tab of a Public Cloud project offers three kinds: Compute APIs logs, Network APIs logs and Volume APIs logs. When Compute APIs logs is selected, the live logs relate to that kind only. Selecting another kind in the log type selector displays different live content. Subscriptions are not listed next to the logs: they are managed from the panel that opens when you click Configuration.

This division of a product's logs into several kinds provides you more flexibility. For example if a product has many kinds (e.g. access, audit, error and ssh) and you are only interested in audit logs, you can subscribe only to the audit kind and skip the others. Another example: you are interested in audit logs and error logs, but you want to send these logs in two different data streams: that's possible by creating two subscriptions based on two different kinds targeting two different data streams.

We cover this use case later in this guide.

On the Logs Data Platform side

Now that you have created logs subscription(s), you can consume these logs the way you want in your Logs Data Platform data stream. Depending on your needs, you can configure your data stream in different (non-exclusive) ways. For instance:

  • Enabling indexing to benefit from the OpenSearch/Graylog feature set.
  • Enabling long-term storage to safely keep your logs for years.
  • Enabling web-socket to consume your logs from a third-party software, such as ldp-tail.

All the possible ways to consume your logs are summarized in the Introduction to Logs Data Platform.

Info

In the case of Public Cloud logs, all the "Log Generation" and "Log Ingestion" are managed by OVHcloud. You only have to care about the "Storage" and "Query and visualization" parts.

You can also manage your logs subscription from a data stream point of view. To do so:

  1. In the left-hand menu of the , open Observability, then click Logs Management.
  2. The page opens on one of your Logs Data Platform services. If you have several, select the right one in the SERVICE selector.
  3. The Data streams tab is open by default. In the table listing your streams, the Subscriptions column displays how many logs subscriptions target a given stream.
  4. In the Actions column of the stream's row, click the â‹® button, then click Manage subscriptions.

The Subscription tab of the data stream opens and lists all the logs subscriptions targeting this data stream.

For each subscription, the table shows the service name (Service name), the type of service it comes from (Service type), the subscribed logs kind (Kind) and the date of the last change (Last modified).

You can also delete a logs subscription from this view by clicking the remove icon in the Actions column of the corresponding row.

Working with the API

To ease your integration jobs with Public Cloud logs, we made the API endpoints consistent across all Public Cloud services. This means all compatible products expose the same set of API endpoints, with the same suffixes, the same payloads and the same responses. The available endpoints are the following:

MethodPathDescription
GET/xxx/{serviceName}/log/kindList product's log kinds
GET/xxx/{serviceName}/log/kind/{name}Get the detail of a log kind
GET/xxx/{serviceName}/log/subscriptionList existing log subscription from this product instance
POST/xxx/{serviceName}/log/subscriptionCreate a new log subscription from this product instance
GET/xxx/{serviceName}/log/subscription/{subscriptionId}Get the detail of a log subscription
DELETE/xxx/{serviceName}/log/subscription/{subscriptionId}Delete a log subscription
POST/xxx/{serviceName}/log/urlGenerate a temporary URL to retrieve logs (used by the live-tail)

Public Cloud logs and the IAM cross-identity service delegation

You can face use cases where the product you want logs from and the Logs Data Platform service are not owned by the same OVHcloud account. Example:

  • Alice is the owner of a Managed Kubernetes Service instance.
  • Bob is the owner of a Logs Data Platform instance.
  • Alice wants her Managed Kubernetes Services logs to be available in Bob's Logs Data Platform data stream.

This is possible thanks to OVHcloud IAM:

  • Bob needs to create an IAM policy to allow Alice's identity to use the ldp:apiovh:output/graylog/stream/forwardTo IAM action on his Logs Data Platform data stream.
  • Then Alice will be able to use the POST /cloud/project/{serviceName}/kube/{kubeId}/log/subscription API endpoint, and give Bob's streamId in this endpoint payload.

You can find more information about IAM policies in the How to use IAM policies using the OVHcloud Control Panel guide.

Interesting strategies

The Public Cloud logs model gives you flexibility in how you gather, isolate, and consume logs. In this section we will see some common patterns. These are just examples, they aren't an exhaustive list of all the Public Cloud logs configuration possibilities.

Many products to One data stream, per environment

In this example let's say you have a tech stack composed of many Public Cloud services. This stack is deployed on multiple environments (development, production). One interesting strategy could be to send each environment's logs to a different data stream, and configure these 2 data streams in a different way:

many-to-one-per-env

In the configuration above:

  • All the logs of your development environment are available in a data stream. Only the indexing feature is enabled on this data stream.
  • All the logs of your production environment are available in another data stream. The indexing and long-term storage feature are both enabled.

This means that:

  • Your development environment logs won't be long-term stored, as you probably don't need it and don't want to pay for it.
  • Your production environment logs will be stored in a dedicated data stream, making it easier for you to configure alerts or dashboards based on this stream.

Many products to Many data streams

Let's take the same example again, where you have a tech stack made of several Public Cloud services. But in this case you have multiple teams, each one working on a different component. For security reasons you want the team A to access the Load Balancer logs but not the Managed Databases logs. Also you have a Security team that needs to access all the audit logs of each component. We can imagine a setup such as the following one:

many-to-many

In the configuration above:

  • All the Load Balancer & Managed Kubernetes application logs are sent to a data stream (blue arrow).
  • All the Managed Databases application logs are sent to another data stream (blue arrow).
  • All their audit logs are sent to another data stream (red arrow).

This means that:

  • You can grant your Security Team to see only the data stream containing all the audit logs of all the components of your tech stack.
  • You can grant your Developer Team to see only the data stream containing the Load Balancer / Managed Kubernetes logs.
  • You can grant your Database Administrator Team to see only the data stream containing your Managed Databases logs.
  • You can configure the indexing/long-term storage/etc. as you wish on each of these streams. You can also set different retentions for each stream.

Go further

Join our community of users.

Was this page helpful?