<?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: Create and manage custom log buckets - Grail Dynatrace API in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225798#M212</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same issue, did you already find which permissions are missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 11:02:58 GMT</pubDate>
    <dc:creator>mferstl</dc:creator>
    <dc:date>2023-10-18T11:02:58Z</dc:date>
    <item>
      <title>Create and manage custom log buckets - Grail Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225130#M211</link>
      <description>&lt;P&gt;I am attempting to create custom grail buckets following the instructions from the following link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/platform/grail/data-model#custom-grail-buckets" target="_blank" rel="noopener"&gt;Grail data model | Dynatrace Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I select the Bucket Management under the definition after going to the Dynatrace API.&amp;nbsp; I create a OAuth client in account management under Identity and Access management.&amp;nbsp; For this client I selected the following scopes:&amp;nbsp; "&lt;SPAN&gt;storage:buckets:read, storage:bucket-definitions:read, storage:bucket-definitions:write, storage:bucket-definitions:delete, storage:bucket-definitions:truncate, account-env-read"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wrote a powershell script to get the OAuth2 access token:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;used:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;grant_type = 'client_credentials'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_id = &amp;lt;My client id from the oauth client i created"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;client_secret = &amp;lt;from the oauth client i created"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resource = &amp;lt;URN from oauth client"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;scope = "storage:bucket-definitions:read"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got the access token and when i make the API call to get the bucket definitions (should be only the default bucket) i receive 403, required permissions not met&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What permissions am i missing from the OAuth client to get this to work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 07:35:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225130#M211</guid>
      <dc:creator>hallstev5</dc:creator>
      <dc:date>2023-10-12T07:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create and manage custom log buckets - Grail Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225798#M212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the same issue, did you already find which permissions are missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 11:02:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225798#M212</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2023-10-18T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create and manage custom log buckets - Grail Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225818#M213</link>
      <description>&lt;P&gt;did you maybe forget this step:&lt;BR /&gt;-&amp;gt; Make sure the User who is creating the Buckets via the API has the following permissions:&lt;BR /&gt;--&amp;gt; Create a Policy with the definition:&lt;BR /&gt;ALLOW storage:bucket-definitions:read;&lt;BR /&gt;ALLOW storage:bucket-definitions:write;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 11:56:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/225818#M213</guid>
      <dc:creator>mferstl</dc:creator>
      <dc:date>2023-10-18T11:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create and manage custom log buckets - Grail Dynatrace API</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/228833#M214</link>
      <description>&lt;P&gt;Hello, your powershell script is missing the scope storage:bucket-definitions:write. Also I leave you this guide &lt;A href="https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Dynatrace-Grail-Storage-Management-API-Postman/td-p/228831" target="_blank"&gt;https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Dynatrace-Grail-Storage-Management-API-Postman/td-p/228831&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:02:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/Create-and-manage-custom-log-buckets-Grail-Dynatrace-API/m-p/228833#M214</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-11-15T17:02:19Z</dc:date>
    </item>
  </channel>
</rss>

