<?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 Re: Connecting BT to PowerBI_alternative in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225195#M243</link>
    <description>&lt;P&gt;I have read logs permission&amp;nbsp;&lt;BR /&gt;I have client token for OAuth and Token ID for API V2 when using token ID method for getting logs using Get method i am getting Error Token Authentication failed&amp;nbsp;&lt;SPAN&gt;Token Authentication failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and got stuck,&amp;nbsp; Since i am new using API's i don't know how to generate bearer token&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 10:41:56 GMT</pubDate>
    <dc:creator>Kris_T</dc:creator>
    <dc:date>2023-10-12T10:41:56Z</dc:date>
    <item>
      <title>Retrieving DQL Data while connecting to PowerBI</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225125#M241</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;We are trying to connecting Dynatrace to PowerBI. We want to run DQL Query and have the results in PowerBI, so we can use:&amp;nbsp;DQL queries via API:&amp;nbsp;&lt;A class="" title="https://www.dynatrace.com/support/help/shortlink/ba-api-ingest#dql-via-api" href="https://www.dynatrace.com/support/help/shortlink/ba-api-ingest#dql-via-api" target="_blank" rel="noreferrer noopener"&gt;https://www.dynatrace.com/support/help/shortlink/ba-api-ingest#dql-via-api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But this is a POST Method and not a GET. I have worked with a colleague and we can authenticate with Tokens for the classic platform APIs and use PowerBI/Excel to integrate with the methods mentioned here and in the &lt;A class="" title="https://youtu.be/pnx0jcl8ahc?si=zytzezc3ue5aqphr&amp;amp;t=1072" href="https://youtu.be/PNX0jCL8AHc?si=zYTzEzC3UE5AqPHR&amp;amp;t=1072" target="_blank" rel="noreferrer noopener"&gt;Dynatrace and PowerBI&lt;/A&gt;&amp;nbsp;(YT Video).&lt;BR /&gt;&lt;BR /&gt;I see something similar, but not the same, this is more of RFE (&lt;A class="" title="https://community.dynatrace.com/t5/product-ideas/have-a-dynatrace-connector-for-powerbi-into-grail/idi-p/211404" href="https://community.dynatrace.com/t5/Product-ideas/Have-a-Dynatrace-Connector-for-PowerBI-into-Grail/idi-p/211404" target="_blank" rel="noreferrer noopener"&gt;Grail to PowerBI Connector&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;How can we connect from PowerBI/Excel to DT, to retrieve DQL Response using the DQL API (POST Method)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 11:19:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225125#M241</guid>
      <dc:creator>Kris_T</dc:creator>
      <dc:date>2024-01-24T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting BT to PowerBI_alternative</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225146#M242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you know if you token has "Read logs&amp;nbsp;(logs.read)" permission?&lt;/P&gt;&lt;P&gt;I would check &lt;A title="Log Monitoring API" href="https://www.dynatrace.com/support/help/shortlink/api-log-monitoring-v2" target="_blank" rel="noopener"&gt;Log Monitoring API&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 22:12:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225146#M242</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-10-11T22:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting BT to PowerBI_alternative</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225195#M243</link>
      <description>&lt;P&gt;I have read logs permission&amp;nbsp;&lt;BR /&gt;I have client token for OAuth and Token ID for API V2 when using token ID method for getting logs using Get method i am getting Error Token Authentication failed&amp;nbsp;&lt;SPAN&gt;Token Authentication failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and got stuck,&amp;nbsp; Since i am new using API's i don't know how to generate bearer token&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 10:41:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225195#M243</guid>
      <dc:creator>Kris_T</dc:creator>
      <dc:date>2023-10-12T10:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting BT to PowerBI_alternative</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225232#M244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For me, easier way is from here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AntonPineiro_0-1697117282591.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14565i1B459BD6DABE08F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AntonPineiro_0-1697117282591.png" alt="AntonPineiro_0-1697117282591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can create your token there and play with Dynatrace API Explorer.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 13:28:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225232#M244</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2023-10-12T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting BT to PowerBI_alternative</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225294#M245</link>
      <description>&lt;P&gt;Remember also to select the appropriate scope of such a token:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-authentication#token-scopes" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-authentication#token-scopes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:04:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/225294#M245</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-10-13T07:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting DT to PowerBI (Retrieving DQL Data)</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/232560#M246</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Yes it is possible and here is a rudimentary piece of code to help:&lt;BR /&gt;Note you would need to create an oauth client on your tenant to be able to use this as described here:&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/access-platform-apis-from-outside/" target="_blank" rel="noopener"&gt;Access platform APIs from outside | Dynatrace Developer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then in your Power query connection in Powerbi use the following (this example runs a fetch logs 1000 records DQL query):&lt;BR /&gt;&lt;BR /&gt;let&lt;BR /&gt;body = grant_type=client_credentials&amp;amp;client_id=&amp;lt;your oauth client id here&amp;gt;&amp;amp;client_secret=&amp;lt;your oauth secret here&amp;gt;&amp;amp;scope=&amp;lt;your scope required here(e.g. storage:logs:read+storage:buckets:read)&amp;gt;,&lt;BR /&gt;Data= Web.Contents("&lt;A href="https://sso-dev.dynatracelabs.com/sso/oauth2/token" target="_blank" rel="noopener"&gt;https://sso.dynatrace.com/sso/oauth2/token&lt;/A&gt;",&lt;BR /&gt;[Content=Text.ToBinary(body),&lt;BR /&gt;Headers=[#"Content-Type"="application/x-www-form-urlencoded"]]),&lt;BR /&gt;DataRecord = Json.Document(Data) ,&lt;BR /&gt;token=DataRecord[access_token],&lt;BR /&gt;postBody = &amp;lt;your dql query here, e.g. {"query": "fetch logs | limit 1000","timezone": "UTC","locale": "en_US","requestTimeoutMilliseconds": 60000,"maxResultRecords": 1000}&amp;gt;,&lt;BR /&gt;Source = Json.Document(Web.Contents("https://&amp;lt;your DT tenant here&amp;gt;/platform/storage/query/v1/query:execute?enrich=metric-metadata",&lt;BR /&gt;[Headers=[#"Authorization"="Bearer "&amp;amp;token, #"Content-Type"="application/json"],&lt;BR /&gt;Content=Text.ToBinary(postBody)])),&lt;BR /&gt;result = Source[result],&lt;BR /&gt;records = result[records],&lt;BR /&gt;#"Converted to Table" = Table.FromList(records, Splitter.SplitByNothing(), null, null, ExtraValues.Error),&lt;BR /&gt;#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"timestamp", "content", "container.image.name", "container.name", "dt.entity.container_group", "dt.entity.container_group_instance", "dt.entity.host", "dt.entity.process_group", "dt.entity.process_group_instance", "dt.process.name", "dt.source_entity", "event.type", "host.name", "log.source", "loglevel", "process.technology", "status", "container.id", "log.iostream"}, {"Column1.timestamp", "Column1.content", "Column1.container.image.name", "Column1.container.name", "Column1.dt.entity.container_group", "Column1.dt.entity.container_group_instance", "Column1.dt.entity.host", "Column1.dt.entity.process_group", "Column1.dt.entity.process_group_instance", "Column1.dt.process.name", "Column1.dt.source_entity", "Column1.event.type", "Column1.host.name", "Column1.log.source", "Column1.loglevel", "Column1.process.technology", "Column1.status", "Column1.container.id", "Column1.log.iostream"})&lt;BR /&gt;in&lt;BR /&gt;#"Expanded Column1"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 08:48:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Retrieving-DQL-Data-while-connecting-to-PowerBI/m-p/232560#M246</guid>
      <dc:creator>gordon_meyer</dc:creator>
      <dc:date>2023-12-21T08:48:42Z</dc:date>
    </item>
  </channel>
</rss>

