From 7236dc4371a8ebf873d1ed1242f1a5c96251d987 Mon Sep 17 00:00:00 2001 From: Simplychee Date: Thu, 12 Dec 2024 09:25:55 +0200 Subject: [PATCH] fixes --- docs/shipping/Code/http.md | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/docs/shipping/Code/http.md b/docs/shipping/Code/http.md index aca97eef..369f3fb8 100644 --- a/docs/shipping/Code/http.md +++ b/docs/shipping/Code/http.md @@ -185,7 +185,7 @@ Breakdown: * `I`: Points to the location of the OpenTelemetry Protobuf definitions. * `i`: Specifies the Protobuf request type (`ExportLogsServiceRequest`). * `o`: Specifies the Protobuf response type (`ExportLogsServiceResponse`). -* `u`: URL of the Logz.io OTLP listener endpoint. Adjust the URL for your region using Logz.io [region settings](https://docs.logz.io/docs/user-guide/admin/hosting-regions/account-region/). +* `u`: URL of the Logz.io OTLP listener endpoint. Adjust the URL for your region using Logz.io [region settings](https://docs.logz.io/docs/user-guide/admin/hosting-regions/account-region/#opentelemetry-protocol-otlp-regions). * `H`: Include headers like the Authorization token and user-agent. * `d`: Specifies the JSON file containing the log data. @@ -232,34 +232,6 @@ Key fields: * `severityNumber`: Log severity level (e.g., `SEVERITY_NUMBER_INFO`). * `body`: The log message content. -## Adjust the Region URL - -You must adjust the OTLP listener URL based on your Logz.io account region. Find the correct endpoint for your region [here](https://docs.logz.io/docs/user-guide/admin/hosting-regions/account-region/). - -For example, if you're in the US region, your endpoint might be: - -```bash --u '' -``` - -For EU region: - -```bash --u '' -``` - -## Full Command Example - -```bash -protocurl -v \\ - -I ~/Downloads/proto/opentelemetry-proto \\ - -i opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest \\ - -o opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse \\ - -u '' \\ - -H 'Authorization: Bearer ' \\ - -H 'user-agent: logzio-protobuf-logs' \\ - -d @export_logs_request.json -``` ## Sample Output in Console