<?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: Umbrella - Reporting, Activity Search in Cloud Edge</title>
    <link>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569408#M26</link>
    <description>&lt;P&gt;That's fantastic, thanks..&lt;/P&gt;&lt;P&gt;Didn't realise the solution would be quite so trivial.&lt;BR /&gt;I guess I am pulling out my Python books again. Using Python I can spit it all out to a JSON file or a spreadsheet. I did an online course in data analysis using Python a couple of years ago, so I am actually pretty excited to get to do some "coding in anger" so to speak.&lt;/P&gt;&lt;P&gt;I think I can make quite a comprehensive analysis tool with this approach..&lt;/P&gt;&lt;P&gt;Thanks also for the tip on Postman. I can use that to do the initial tests to ensure I am pulling the correct data, it will help massively with the testing phase of the development.&lt;/P&gt;&lt;P&gt;You're a legend Brian. Thanks again.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 05:47:33 GMT</pubDate>
    <dc:creator>michael.morley</dc:creator>
    <dc:date>2022-03-13T05:47:33Z</dc:date>
    <item>
      <title>Umbrella - Reporting, Activity Search</title>
      <link>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569160#M24</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find a way of passing a list of domains to the Reporting Activity Search within Umbrella to see if any of the domains have had a hit in the last 30 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't seem to find a way to do it within the web based GUI other than copying and pasting each domain name individually from a file. As you can imagine this gets rather tedious when there are several hundred domains and IP address to check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: Is there a way to import a CSV or text file and have it go through the list and output a report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have only been using Umbrella for a little while now and am still finding my feet. Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 03:22:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569160#M24</guid>
      <dc:creator>michael.morley</dc:creator>
      <dc:date>2022-03-12T03:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Umbrella - Reporting, Activity Search</title>
      <link>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569248#M25</link>
      <description>&lt;P&gt;You can absolutely do this with the API, but it's going to take a little bit of massaging of the output to put it into the format you're looking for.&amp;nbsp; The '/activity' endpoint on the Reporting API is what you'll be using.&amp;nbsp; If you're newer to this, you can do it in Postman using the the provided &lt;A href="https://developer.cisco.com/docs/cloud-security/#!reporting-v2-api-postman-collection" target="_self"&gt;collection&lt;/A&gt;.&amp;nbsp; There's essentially two calls, one to get your bearer token using your key and secret generated Admin -&amp;gt; API Keys :&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="2022-03-12_07-42-50.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/145977i5D7EE4A06AD66269/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-03-12_07-42-50.png" alt="2022-03-12_07-42-50.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you take the generated key and secret and auth to the service using something like the below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import requests
url = "https://management.api.umbrella.com/auth/v2/oauth2/token"
payload={}
headers = {
  'Authorization': 'Basic {{key}}:{{secret}}'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)&lt;/PRE&gt;
&lt;P&gt;This will return your bearer token you can then put into something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import requests
url = "https://reports.api.umbrella.com/v2/organizations/{{your org}}/activity?from=-30days&amp;amp;to=now&amp;amp;offset=0&amp;amp;domains=cisco.com"
headers = {
  'Authorization': 'Bearer {{bearer}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)&lt;/PRE&gt;
&lt;P&gt;The 'from' parameter can be set to how often you are running the script and domains can either be one domain or a .csv file containing a list of domains.&amp;nbsp; Additional parameters can be found &lt;A href="https://developer.cisco.com/docs/cloud-security/#!request-samples/request-query-parameters" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; If you're only interested if a particular domain has been accessed, not all of the individual accesses, you can just do a ?limit=1 parameter and see if the script returns anything.&amp;nbsp; If the domain wasn't accessed in that time period it you will get a null data set back.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 14:01:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569248#M25</guid>
      <dc:creator>Brian Sak</dc:creator>
      <dc:date>2022-03-12T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Umbrella - Reporting, Activity Search</title>
      <link>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569408#M26</link>
      <description>&lt;P&gt;That's fantastic, thanks..&lt;/P&gt;&lt;P&gt;Didn't realise the solution would be quite so trivial.&lt;BR /&gt;I guess I am pulling out my Python books again. Using Python I can spit it all out to a JSON file or a spreadsheet. I did an online course in data analysis using Python a couple of years ago, so I am actually pretty excited to get to do some "coding in anger" so to speak.&lt;/P&gt;&lt;P&gt;I think I can make quite a comprehensive analysis tool with this approach..&lt;/P&gt;&lt;P&gt;Thanks also for the tip on Postman. I can use that to do the initial tests to ensure I am pulling the correct data, it will help massively with the testing phase of the development.&lt;/P&gt;&lt;P&gt;You're a legend Brian. Thanks again.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 05:47:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-edge/umbrella-reporting-activity-search/m-p/4569408#M26</guid>
      <dc:creator>michael.morley</dc:creator>
      <dc:date>2022-03-13T05:47:33Z</dc:date>
    </item>
  </channel>
</rss>

