Skip to content

Commit 7636364

Browse files
committed
English guide
English guide - still need clarification for some fields in the log contents, will contact relevant team.
1 parent 9f71ce3 commit 7636364

File tree

2 files changed

+22
-41
lines changed

2 files changed

+22
-41
lines changed

pages/network/load_balancer/use_api_logs_2_customers/guide.en-gb.md

Lines changed: 20 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: OVHcloud Load Balancer TCP / HTTP / HTTPS Logs Forwarding
33
excerpt: Find out how to forward your logs from an OVHcloud Load Balancer to Logs Data Platform
4-
updated: 2024-09-25
4+
updated: 2025-05-26
55
---
66

77
## Objective
@@ -40,48 +40,27 @@ The forwarded logs are generated by [HAproxy](https://en.wikipedia.org/wiki/HAPr
4040

4141
### Log content for TCP based listeners : `TCP`, `HTTP`
4242

43-
| Field name | Description | Type |
44-
|------------|-------------|---------|
45-
| accept_date | The timestamp at which the request/connection was made | datetime (with millisecond resolution) e.g. 25/Mar/2024:14:07:19.536 |
46-
| bytes_read_int | The number of bytes read by the server | Integer |
47-
| bytes_uploaded_int | The number of bytes sent by the server to the client | Integer |
48-
| client_ip | IP address of the client that initiated the TCP connection to the Load Balancer | IP |
49-
| client_ip_city_name | The city computed by Geoip from `client_ip`| String (e.g. `Lille`) |
50-
| client_ip_country_code | The ISO 3166 A-2 country code computed by Logstash Geoip from `client_ip` ISO | XX (e.g. `FR`) |
51-
| client_ip_geolocation | The latitude, longitude computed by Logstash Geoip from `client_ip`| x.x,y.y (e.g. `50.624,3.0511`) XST6Y7U899O0|
52-
| client_port_int | TCP port of the client that initiated the TCP connection to the Load Balancer | Integer |
53-
| listener_id | The ID of the listener that received the request/connection | uuid |
54-
| load_balancer_id | The ID of the Load Balancer that received the request/connection | uuid |
55-
| member | The member to which the request / connection was sent | uuid |
56-
| message | The original log message | String |
57-
| pool | The pool that processed the request / connection | uuid |
58-
| project_id | The ID of the Public Cloud project to which the Load Balancer belongs | uuid |
59-
| region | The Public Cloud region to which the load balancer belongs | String |
60-
| tcp_total_session_duration_time_int | The time in milliseconds the TCP session has been opened when this request is made | Integer |
61-
| termination_state | The session termination indicator: 2 letters for TCP, 4 letters for HTTP all the details on [HAProxy documentation page](https://docs.haproxy.org/2.6/configuration.html#8.5){.external}| String (e.g. "----") |
62-
| timestamp | The timestamp at which the log has been issued | String |
63-
6443
| Field name | Description | Type |
6544
|------------|-------------|---------|
6645
| service_name | The name of the Load Balancer that received the request/connection | String |
6746
| date_time | The timestamp at which the request/connection was made | datetime (with millisecond resolution) e.g. 25/Mar/2024:14:07:19.536 |
68-
| zone | The Public Cloud region to which the load balancer belongs | String |
47+
| zone | The OVHcloud region to which the load balancer belongs | String |
6948
| client_ip | IP address of the client that initiated the TCP connection to the Load Balancer | IP |
7049
| client_port_int | TCP port of the client that initiated the TCP connection to the Load Balancer | Integer |
71-
| frontend_name | Name of the frontend of your OVH
72-
| frontend_ip |
73-
| frontend_port_int |
74-
| backend_name |
75-
| backend_source_ip |
76-
| backend_source_port_int |
50+
| frontend_name | Name of the frontend of your Load Balancer | String |
51+
| frontend_ip | IP address of the frontend of your Load Balancer | IP |
52+
| frontend_port_int | TCP port of the frontent of your Load Balancer | Integer |
53+
| backend_name | Name of the backend server connected to your Load Balancer | String |
54+
| backend_source_ip | IP address of the backend server connected to your Load Balancer | IP |
55+
| backend_source_port_int | TCP port of the backend server connected to your Load Balancer | Integer |
7756
| server_ip |
7857
| server_port_int |
7958
| termination_state | The session termination indicator: 2 letters for TCP, 4 letters for HTTP, all the details on [HAProxy documentation page](https://docs.haproxy.org/2.6/configuration.html#8.5){.external}| String (e.g. "----") |
8059
| bytes_read_int |
8160
| bytes_uploaded_int |
8261
| time_duration_int | The time in milliseconds the TCP session has been opened when this request is made | Integer |
8362

84-
### Additional content for `HTTP` & `TERMINATED_HTTPS` listeners
63+
### Additional content for `HTTP` listeners
8564

8665
| Field name | Description | Type |
8766
|------------|-------------|---------|
@@ -126,7 +105,7 @@ Use the following API call to create a subscription:
126105

127106
> [!api]
128107
>
129-
> @api {v1} /cloud POST /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription
108+
> @api {v1} /ipLoadbalancing POST /ipLoadbalancing/{serviceName}/log/subscription
130109
>
131110
132111
You will need to replace:
@@ -139,9 +118,9 @@ The POST request has a payload that requires:
139118
- `streamId`: the target data stream of your LDP account where you want your Load Balancer logs to be forwarded to.
140119

141120
```shell
142-
POST /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription
121+
POST /ipLoadbalancing/{serviceName}/log/subscription
143122
{
144-
"kind": "string", // Currently the only supported value is 'haproxy'.
123+
"kind": "string", // "http" or "tcp".
145124
"streamId": "18d602ec-af40-4000-8e59-41ecc8c23f80" // The streamID of the targeted Stream.
146125
}
147126
```
@@ -166,30 +145,30 @@ Alternatively, once the operation is finished, the subscriptions can be retrieve
166145

167146
> [!api]
168147
>
169-
> @api {v1} /cloud GET /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription/
148+
> @api {v1} /ipLoadbalancing GET /ipLoadbalancing/{serviceName}/log/subscription
170149
>
171150
172151
Once you have the `subscriptionId`, you can get the details using the following API call:
173152

174153
> [!api]
175154
>
176-
> @api {v1} /cloud GET /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription/{subscriptionId}
155+
> @api {v1} /ipLoadbalancing GET /ipLoadbalancing/{serviceName}/log/subscription/{subscriptionId}
177156
>
178157
179158
```shell
180-
GET /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription/{subscriptionId}
159+
GET /ipLoadbalancing/{serviceName}/log/subscription/{subscriptionId}
181160

182161
{
183-
"createdAt": "2024-01-31T15:45:25.286Z",
162+
"createdAt": "2025-05-28T13:41:19.713Z",
184163
"kind": "string",
185164
"resource": {
186165
"name": "string",
187166
"type": "string"
188167
},
189168
"serviceName": "string",
190-
"streamId": "string",
191-
"subscriptionId": "18d60324-b260-4000-83db-b484f4db6e80",
192-
"updatedAt": "2024-01-31T15:45:25.286Z"
169+
"streamId": "19717204-2e10-4000-8b63-4f080b5d5101",
170+
"subscriptionId": "19717204-2e10-4000-8c42-d7b11c9ce680",
171+
"updatedAt": "2025-05-28T13:41:19.713Z"
193172
}
194173
```
195174

@@ -220,7 +199,7 @@ To delete your subscription you can use the following API call:
220199

221200
> [!api]
222201
>
223-
> @api {v1} /cloud DELETE /cloud/project/{serviceName}/region/{regionName}/loadbalancing/loadbalancer/{loadBalancerId}/log/subscription/{subscriptionId}
202+
> @api {v1} /ipLoadbalancing DELETE /ipLoadbalancing/{serviceName}/log/subscription/{subscriptionId}
224203
>
225204
226205
## Go further
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
id: 80715d9f-104d-4396-bdee-bf6cc96128b0
2+
full_slug: load-balancer-api-logs-2-customers

0 commit comments

Comments
 (0)