<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Right payload format for /api/v2/otlp/v1/logs in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/222840#M2644</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;Trying to find the right payload for the body of /api/v2/otlp/v1/logs, keep getting &lt;EM&gt;Error: response status is 400&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Can anyone&amp;nbsp; show example of A&lt;SPAN&gt;&lt;EM&gt;n ExportLogsServiceRequest message in binary protobuf format&lt;/EM&gt;. that works?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1694532790548.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14064i8DB8C415624FB17E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1694532790548.png" alt="Yosi_Neuman_0-1694532790548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 15:31:28 GMT</pubDate>
    <dc:creator>Yosi_Neuman</dc:creator>
    <dc:date>2023-12-20T15:31:28Z</dc:date>
    <item>
      <title>Right payload format for /api/v2/otlp/v1/logs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/222840#M2644</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;Trying to find the right payload for the body of /api/v2/otlp/v1/logs, keep getting &lt;EM&gt;Error: response status is 400&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Can anyone&amp;nbsp; show example of A&lt;SPAN&gt;&lt;EM&gt;n ExportLogsServiceRequest message in binary protobuf format&lt;/EM&gt;. that works?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1694532790548.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14064i8DB8C415624FB17E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1694532790548.png" alt="Yosi_Neuman_0-1694532790548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 15:31:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/222840#M2644</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2023-12-20T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the right payload format for /api/v2/otlp/v1/logs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/226320#M2713</link>
      <description>&lt;P&gt;I am experiencing the same issue, hope to get a reply on this one.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 20:49:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/226320#M2713</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2023-10-23T20:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Right payload format for /api/v2/otlp/v1/logs</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/232922#M2844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/6931"&gt;@Yosi_Neuman&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65871"&gt;@Jennifer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Merry Christmas and sorry for the late response, I assume you got it working by now.&lt;/P&gt;
&lt;P&gt;Logs are a bit special with OpenTelemetry, as - unlike traces and metrics - they are not supposed to be handled directly via your code and any OpenTelemetry APIs, but via &lt;A href="https://docs.dynatrace.com/docs/shortlink/otel-overview-logs#how-to-use-opentelemetry-logs" target="_self"&gt;log bridges&lt;/A&gt;&amp;nbsp;only. Should there be no such bridge available, the recommended approach is to use the Collector and the applicable receiver component to read the entries and convert them to OTLP.&lt;/P&gt;
&lt;P&gt;So, generally, one should avoid assembling the relevant messages by hand, but if your use case requires that, you'll find more information on the protocol and the messages under the following links:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://opentelemetry.io/docs/specs/otlp/#otlphttp" target="_blank"&gt;https://opentelemetry.io/docs/specs/otlp/#otlphttp&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto" target="_blank"&gt;https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also verify that you are using regular HTTP and &lt;STRONG&gt;not gRPC&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 06:51:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Right-payload-format-for-api-v2-otlp-v1-logs/m-p/232922#M2844</guid>
      <dc:creator>alexander_dt</dc:creator>
      <dc:date>2023-12-28T06:51:17Z</dc:date>
    </item>
  </channel>
</rss>

