<?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 Get container timeline history via REST in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Get-container-timeline-history-via-REST/m-p/561131#M678</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I need to extract container timeline events via the REST API in order to generate analyst, playbook and action timeline reports.&lt;/P&gt;&lt;P&gt;The closest endpoint I can find is &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTQueryData#Requesting_Object_Detail" target="_self"&gt;briefly mentioned in the REST API documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/rest/container/&amp;lt;container id&amp;gt;/actions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can't find any other mention of this endpoint in the documentation. This endpoint is useful however it only provides action history, not analyst or playbook activity history.&lt;/P&gt;&lt;P&gt;The Phantom web portal calls an undocumented API which returns exactly what I need:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/rest/container/&amp;lt;container ID&amp;gt;/timeline?&amp;lt;many required query parameters&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...however it requires many query parameters. If you don't get the query parameters&amp;nbsp;correct it returns empty results.&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;1. Can someone refer me to documentation for the container timeline API endpoint mentioned above?&lt;/P&gt;&lt;P&gt;2. If not, is there an alternative "documented" endpoint that will return all container timeline information?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 01:57:37 GMT</pubDate>
    <dc:creator>bongo</dc:creator>
    <dc:date>2021-07-28T01:57:37Z</dc:date>
    <item>
      <title>Get container timeline history via REST</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Get-container-timeline-history-via-REST/m-p/561131#M678</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I need to extract container timeline events via the REST API in order to generate analyst, playbook and action timeline reports.&lt;/P&gt;&lt;P&gt;The closest endpoint I can find is &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.4/PlatformAPI/RESTQueryData#Requesting_Object_Detail" target="_self"&gt;briefly mentioned in the REST API documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/rest/container/&amp;lt;container id&amp;gt;/actions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I can't find any other mention of this endpoint in the documentation. This endpoint is useful however it only provides action history, not analyst or playbook activity history.&lt;/P&gt;&lt;P&gt;The Phantom web portal calls an undocumented API which returns exactly what I need:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/rest/container/&amp;lt;container ID&amp;gt;/timeline?&amp;lt;many required query parameters&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...however it requires many query parameters. If you don't get the query parameters&amp;nbsp;correct it returns empty results.&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;1. Can someone refer me to documentation for the container timeline API endpoint mentioned above?&lt;/P&gt;&lt;P&gt;2. If not, is there an alternative "documented" endpoint that will return all container timeline information?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 01:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Get-container-timeline-history-via-REST/m-p/561131#M678</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-07-28T01:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get container timeline history via REST</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Get-container-timeline-history-via-REST/m-p/562026#M689</link>
      <description>&lt;P&gt;After some experimentation I found that the endpoint will return all data if passed the following general JSON object after it's converted to a query string:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"page_number": 1,&lt;BR /&gt;"min_time": "2018-01-01T00:00:00.000000Z",&lt;BR /&gt;"max_time": "2038-01-01T00:00:00.000000Z",&lt;BR /&gt;"count": 10000,&lt;BR /&gt;"artifact": {&lt;BR /&gt;"count": 10000,&lt;BR /&gt;"min_time": "2018-01-01T00:00:00.000000Z",&lt;BR /&gt;"max_time": "2038-01-01T00:00:00.000000Z",&lt;BR /&gt;},&lt;BR /&gt;"event": {&lt;BR /&gt;"count": 10000,&lt;BR /&gt;"min_time": "2018-01-01T00:00:00.000000Z",&lt;BR /&gt;"max_time": "2038-01-01T00:00:00.000000Z",&lt;BR /&gt;},&lt;BR /&gt;"playbook": {&lt;BR /&gt;"count": 10000,&lt;BR /&gt;"min_time": "2018-01-01T00:00:00.000000Z",&lt;BR /&gt;"max_time": "2038-01-01T00:00:00.000000Z",&lt;BR /&gt;},&lt;BR /&gt;"action": {&lt;BR /&gt;"count": 10000,&lt;BR /&gt;"min_time": "2018-01-01T00:00:00.000000Z",&lt;BR /&gt;"max_time": "2038-01-01T00:00:00.000000Z",&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;/rest/container/&lt;EM&gt;&amp;lt;container ID&amp;gt;&lt;/EM&gt;/timeline?query_params={"page_number":1,"min_time":"2018-01-01T00:00:00.000000Z","max_time":"2038-01-01T00:00:00.000000Z","count":10000,"artifact":{"count":10000,"min_time":"2018-01-01T00:00:00.000000Z","max_time":"2038-01-01T00:00:00.000000Z"},"event":{"count":10000,"min_time":"2018-01-01T00:00:00.000000Z","max_time":"2038-01-01T00:00:00.000000Z"},"playbook":{"count":10000,"min_time":"2018-01-01T00:00:00.000000Z","max_time":"2038-01-01T00:00:00.000000Z"},"action":{"count":10000,"min_time":"2018-01-01T00:00:00.000000Z","max_time":"2038-01-01T00:00:00.000000Z"}}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 21:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Get-container-timeline-history-via-REST/m-p/562026#M689</guid>
      <dc:creator>bongo</dc:creator>
      <dc:date>2021-08-04T21:35:17Z</dc:date>
    </item>
  </channel>
</rss>

