You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>> The logs will then start to be forwarded to your LDP stream.
37
+
>>
38
+
> Via the OVHcloud API
39
+
>>
40
+
>> 1\. Retrieve the required information
41
+
>>
42
+
>> **Retrieve your LDP destination `streamId`:**
43
+
>>
44
+
>> Log in to the [OVHcloud Control Panel](/links/manager), go to the `Identity, Security & Operations`{.action} section. In the left-hand menu, select `Logs Data Platform`{.action} then click on the relevant LDP instance.
45
+
>>
46
+
>> {.thumbnail}
>> Log in to the [OVHcloud Control Panel](/links/manager), open the `Public Cloud`{.action} section and select the Public Cloud project concerned. In the left-hand menu, click on `Databases`{.action}, then choose the database instance you want to manage.
63
+
>>
64
+
>> In the cluster details, you can find the `Service ID` field, which corresponds to the cluster ID.
>> 2\. Start by retrieving the types of logs available for your database cluster with the following API call:
69
+
>>
70
+
>> > [!api]
71
+
>> >
72
+
>> > @api {v1} /cloud GET /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/kind
73
+
>> >
74
+
>>
75
+
>> This will return the list of valid kind values you can use when subscribing to logs.
76
+
>>
77
+
>> 3\. Once you know the valid kind, use it to subscribe to a log stream with this API call:
78
+
>>
79
+
>> > [!api]
80
+
>> >
81
+
>> > @api {v1} /cloud POST /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/subscription
82
+
>> >
83
+
>>
84
+
>> ```console
85
+
>> body : {
86
+
>> kind: <log_type_from_previous_call>
87
+
>> streamId: <your_stream_id>
88
+
>> }
89
+
>> ```
90
+
>>
91
+
>> The logs will then start to be forwarded to your LDP stream.
92
+
>>
25
93
26
-
#### Retrieve your LDP destination `streamId`:
27
-
28
-
- In the OVHcloud Control Panel, go to your LDP page.
29
-
- Go to the `Data stream` tab.
30
-
- Choose your target stream and click on `Copy stream ID`{.action}.
31
-
32
-
#### Retrieve your LDP destination `serviceName`:
33
-
34
-
- It refers to your Public Cloud project ID.
35
-
36
-
#### Retrieve your `clusterId`:
94
+
### Find logs in Graylog
37
95
38
-
- In the OVHcloud Control Panel, go to your database.
39
-
- You can see the field `Cluster ID`.
96
+
On the LDP page, click the `sample-data-stream`{.action} button (the last data stream modified when you previously subscribed to it), or click the `Graylog`{.action} button.
40
97
41
-
### Step 2 - Create your subscription
98
+
{.thumbnail}
42
99
43
-
Use the following API call:
100
+
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`.
44
101
45
-
> [!api]
46
-
>
47
-
> @api {v1} /cloud POST /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/subscription
>> The logs will then start to be forwarded to your LDP stream.
37
+
>>
38
+
> Via the OVHcloud API
39
+
>>
40
+
>> 1\. Retrieve the required information
41
+
>>
42
+
>> **Retrieve your LDP destination `streamId`:**
43
+
>>
44
+
>> Log in to the [OVHcloud Control Panel](/links/manager), go to the `Identity, Security & Operations`{.action} section. In the left-hand menu, select `Logs Data Platform`{.action} then click on the relevant LDP instance.
45
+
>>
46
+
>> {.thumbnail}
>> Log in to the [OVHcloud Control Panel](/links/manager), open the `Public Cloud`{.action} section and select the Public Cloud project concerned. In the left-hand menu, click on `Databases`{.action}, then choose the database instance you want to manage.
63
+
>>
64
+
>> In the cluster details, you can find the `Service ID` field, which corresponds to the cluster ID.
>> 2\. Start by retrieving the types of logs available for your database cluster with the following API call:
69
+
>>
70
+
>> > [!api]
71
+
>> >
72
+
>> > @api {v1} /cloud GET /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/kind
73
+
>> >
74
+
>>
75
+
>> This will return the list of valid kind values you can use when subscribing to logs.
76
+
>>
77
+
>> 3\. Once you know the valid kind, use it to subscribe to a log stream with this API call:
78
+
>>
79
+
>> > [!api]
80
+
>> >
81
+
>> > @api {v1} /cloud POST /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/subscription
82
+
>> >
83
+
>>
84
+
>> ```console
85
+
>> body : {
86
+
>> kind: <log_type_from_previous_call>
87
+
>> streamId: <your_stream_id>
88
+
>> }
89
+
>> ```
90
+
>>
91
+
>> The logs will then start to be forwarded to your LDP stream.
92
+
>>
25
93
26
-
#### Retrieve your LDP destination `streamId`:
27
-
28
-
- In the OVHcloud Control Panel, go to your LDP page.
29
-
- Go to the `Data stream` tab.
30
-
- Choose your target stream and click on `Copy stream ID`{.action}.
31
-
32
-
#### Retrieve your LDP destination `serviceName`:
33
-
34
-
- It refers to your Public Cloud project ID.
35
-
36
-
#### Retrieve your `clusterId`:
94
+
### Find logs in Graylog
37
95
38
-
- In the OVHcloud Control Panel, go to your database.
39
-
- You can see the field `Cluster ID`.
96
+
On the LDP page, click the `sample-data-stream`{.action} button (the last data stream modified when you previously subscribed to it), or click the `Graylog`{.action} button.
40
97
41
-
### Step 2 - Create your subscription
98
+
{.thumbnail}
42
99
43
-
Use the following API call:
100
+
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`.
44
101
45
-
> [!api]
46
-
>
47
-
> @api {v1} /cloud POST /cloud/project/{serviceName}/database/{engine}/{clusterId}/log/subscription
0 commit comments