<?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 Events on particular to CSV in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189866#M21645</link>
    <description>&lt;P&gt;We have a requirement to retrieve all the events on a particular host into a sheet(excel/CSV).&lt;/P&gt;
&lt;P&gt;I tried using Event API-2 to get the event, but the output I am receiving is for all the hosts, when tried using Entity selector with HostId, then we are getting no response body.&lt;/P&gt;
&lt;P&gt;I am using the below API call,&lt;/P&gt;
&lt;P data-unlink="true"&gt;curl -X GET "https://xxxxxx.live.dynatrace.com/api/v2/events?from=-24h&amp;amp;to=now&amp;amp;eventSelector=eventType%28%22PROCESS_RESTART%22%29&amp;amp;entitySelector=entityId%28%22HOST-xxxxxxxxxxxx22%29&amp;nbsp;" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token dtxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 11:22:58 GMT</pubDate>
    <dc:creator>Pranav1</dc:creator>
    <dc:date>2022-09-01T11:22:58Z</dc:date>
    <item>
      <title>Events on particular to CSV</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189866#M21645</link>
      <description>&lt;P&gt;We have a requirement to retrieve all the events on a particular host into a sheet(excel/CSV).&lt;/P&gt;
&lt;P&gt;I tried using Event API-2 to get the event, but the output I am receiving is for all the hosts, when tried using Entity selector with HostId, then we are getting no response body.&lt;/P&gt;
&lt;P&gt;I am using the below API call,&lt;/P&gt;
&lt;P data-unlink="true"&gt;curl -X GET "https://xxxxxx.live.dynatrace.com/api/v2/events?from=-24h&amp;amp;to=now&amp;amp;eventSelector=eventType%28%22PROCESS_RESTART%22%29&amp;amp;entitySelector=entityId%28%22HOST-xxxxxxxxxxxx22%29&amp;nbsp;" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token dtxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 11:22:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189866#M21645</guid>
      <dc:creator>Pranav1</dc:creator>
      <dc:date>2022-09-01T11:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Events on particular to CSV</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189879#M21648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/48767"&gt;@Pranav1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are looking for process restarts the information you are getting back are not including the host id or name.&lt;/P&gt;&lt;P&gt;So for each entry in the response you will need to check the&amp;nbsp;process entity with v2/entities/{entityId}&amp;nbsp; rest IP to check if its belong to the host&lt;/P&gt;&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_1-1657018743137.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6437iB982D8A3906302B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_1-1657018743137.png" alt="Yosi_Neuman_1-1657018743137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1657018662465.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6436iB7029E1B5B97344C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1657018662465.png" alt="Yosi_Neuman_0-1657018662465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 10:59:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189879#M21648</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2022-07-05T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Events on particular to CSV</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189978#M21661</link>
      <description>&lt;P&gt;Here is the time to convert this into an Idea&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/48767"&gt;@Pranav1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:35:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Events-on-particular-to-CSV/m-p/189978#M21661</guid>
      <dc:creator>techean</dc:creator>
      <dc:date>2022-07-06T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

