<?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: Audit Log API - How to Convert Json Data to Excel in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169022#M235</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14877"&gt;@ChadTurner&lt;/a&gt;&amp;nbsp;very helpful&lt;BR /&gt;But Im in environment with Excel 2016, no way to find the option to import json file.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jul 2021 07:18:40 GMT</pubDate>
    <dc:creator>Malaik</dc:creator>
    <dc:date>2021-07-11T07:18:40Z</dc:date>
    <item>
      <title>Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126756#M108</link>
      <description>&lt;P&gt;Many people have asked how to convert Json Files into Excel. Follow these simple stepson how to get started.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:19:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126756#M108</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-09-04T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126757#M109</link>
      <description>&lt;P&gt;First and foremost you will need to have enabled SaaS audit logging and created an API token that will authorize the audit log Json data. These instruction can be found here: &lt;A rel="noopener noreferrer" href="https://answers.dynatrace.com/spaces/482/dynatrace-open-qa/questions/233292/dynatrace-saas-audit-logs.html" target="_blank"&gt;Setting up SaaS Audit Logs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.)&lt;/STRONG&gt; Once you have run the API to capture the data it will then allow you to download this data in the form of a json File: Click Download. The file will then download on your device.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23281-step-1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.)&lt;/STRONG&gt; Open up excel and select Data &amp;gt; Get Data &amp;gt; From File &amp;gt; From JSON. Browse and open the recently downloaded Json File&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23282-step-2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.)&lt;/STRONG&gt; Here we can see that there are 156 entries. lets go ahead and click the list.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23283-step-3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4.)&lt;/STRONG&gt; You will now see all the records that were in that list that make sup the audit log. To break these out of the list we will need to select "To Table".&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23284-step-4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5.)&lt;/STRONG&gt; Keep the Defaults and select OK&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23285-step-5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6.)&lt;/STRONG&gt; the second part of the data break out is to Select the break out arrows, and select the columns you'd like to be included. These are the columns that are listed in the records. Selected them as desired.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23286-step-6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7.) &lt;/STRONG&gt;The data will then be broken out. Take this opportunity to move the columns around as you see fir. This can be done by right clicking a column and selecting move.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23287-step-7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8.)&lt;/STRONG&gt; You can also replace values. For example if you what to change the environment ID to Prod or NonProd you can do so by right clicking the column and selecting "Replace Values".&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23288-step-8.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:54:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126757#M109</guid>
      <dc:creator>ctturner</dc:creator>
      <dc:date>2020-01-17T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126758#M110</link>
      <description>&lt;P&gt;&lt;STRONG&gt;9.) &lt;/STRONG&gt;Fill out the form as desired and select ok.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23289-step-9.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10.)&lt;/STRONG&gt; Once you are satisfied with the lay out, select Close and load. The data will now be imported into Excel.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23296-step10.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;11.)&lt;/STRONG&gt; The results:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23291-step-11.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:54:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126758#M110</guid>
      <dc:creator>ctturner</dc:creator>
      <dc:date>2020-01-17T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126759#M111</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Excellent post! Love tutorial contributions like this. Thank you!&lt;/P&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Jan 2020 13:58:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126759#M111</guid>
      <dc:creator>larry_roberts</dc:creator>
      <dc:date>2020-01-17T13:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126760#M112</link>
      <description>&lt;P&gt;Thank you! You are more then welcome! Happy to share my knowledge! &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2020 14:00:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126760#M112</guid>
      <dc:creator>ctturner</dc:creator>
      <dc:date>2020-01-17T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126761#M113</link>
      <description>&lt;P&gt;Additional to this just remember the options that we have to extract information from Dynatrace and read it in CSV format:&lt;BR /&gt;&lt;BR /&gt;1) Use Environment API v1 + script that converts JSON to Excel&lt;BR /&gt;- For this, you may extract the information you are interested in Timeseries endpoint. The request will return a JSON file.&lt;BR /&gt;- Download the JSON returned&lt;BR /&gt;- Use the script from &lt;A href="https://github.com/HAtree/DtJsonToCsv"&gt;https://github.com/HAtree/DtJsonToCsv&lt;/A&gt; to convert the JSON in a CSV format&lt;BR /&gt;&lt;BR /&gt;2) Use Environmental API v2&lt;BR /&gt;- Extract information by using the Metrics endpoint and passint he header "accept: text/csv", this will return the metric values in csv format&lt;BR /&gt;Check this blog article for more details &lt;A href="https://www.dynatrace.com/news/blog/integrate-dynatrace-more-easily-using-the-new-metrics-rest-api/"&gt;https://www.dynatrace.com/news/blog/integrate-dynatrace-more-easily-using-the-new-metrics-rest-api/&lt;/A&gt;&lt;BR /&gt;(example of the call:&lt;BR /&gt;curl -X GET "https://&amp;lt;YOUR_URL&amp;gt;api/v2/metrics/query? metricSelector=builtin%3Aservice.response.time&amp;amp;resolution=m&amp;amp;from=-15m" -H "accept: text/csv; header=present; charset=utf-8" -H "Authorization: Api-Token &amp;lt;YOUR_TOKEN&amp;gt;" )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 17:36:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/126761#M113</guid>
      <dc:creator>rodrigo_alvare1</dc:creator>
      <dc:date>2020-02-20T17:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169022#M235</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/14877"&gt;@ChadTurner&lt;/a&gt;&amp;nbsp;very helpful&lt;BR /&gt;But Im in environment with Excel 2016, no way to find the option to import json file.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 07:18:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169022#M235</guid>
      <dc:creator>Malaik</dc:creator>
      <dc:date>2021-07-11T07:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169025#M236</link>
      <description>&lt;P&gt;You might want to use jq, like in the command below. I only use the entries below, but you can adapt to your own case. In my case, I also use TSV, as it's better than CSV, as commas may appear elsewhere in the data.&lt;/P&gt;&lt;P&gt;jq -r ".auditLogs[]|[.eventType,.category,.entityId,.user,.userType,.userOrigin,.timestamp,.success,(.patch|@text)]|@tsv"&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 09:56:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169025#M236</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2021-07-11T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169026#M237</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But simply, you can select Data from Text file&lt;BR /&gt;&lt;BR /&gt;Worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great post.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 11:49:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/169026#M237</guid>
      <dc:creator>Malaik</dc:creator>
      <dc:date>2021-07-11T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Log API - How to Convert Json Data to Excel</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/204577#M752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/15386"&gt;@ctturner&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;great post, it works for most APIs, but it just doesn't work for Cluster API v1 GET /groups/managementZones.&lt;/P&gt;&lt;P&gt;As I break out the mzPermissions coloumn, I get an error message:&amp;nbsp;&lt;SPAN&gt;We cannot convert a value of type Record to type Text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andras_kovacs03_0-1676061746319.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/9900i44F2D977C77EB093/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andras_kovacs03_0-1676061746319.png" alt="andras_kovacs03_0-1676061746319.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Can you reproduce the error on your side?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:44:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Audit-Log-API-How-to-Convert-Json-Data-to-Excel/m-p/204577#M752</guid>
      <dc:creator>andras_kovacs03</dc:creator>
      <dc:date>2023-02-10T20:44:24Z</dc:date>
    </item>
  </channel>
</rss>

