<?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: Cannot apply advanced filters for O365 API feeds in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/307551#M96320</link>
    <description>&lt;P&gt;I have created a feed of O365 URLs&amp;nbsp;&lt;SPAN&gt;filtering on expressRoute = True&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;infilters:
-   actions:
    - accept
    conditions:
    - __method == 'withdraw'
    name: accept withdraws
-   actions:
    - accept
    conditions:
    - o365_expressRoute == true
    name: accept o365_expressRoute
-   actions:
    - drop
    name: drop all&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;All works fine...&amp;nbsp; However,&lt;/P&gt;&lt;P&gt;Comparing the results from Minemeld with the output from a bit of PowerShell, which does the same job. Minemeld does not include the URL&amp;nbsp;&lt;STRONG&gt;*.outlook.office.com&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(Invoke-WebRequest -Uri $EndpointUri  | ConvertFrom-Json) | % { 
    if ($_.expressRoute) { $_.urls }
     }&lt;/LI-CODE&gt;&lt;P&gt;I can not see why.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 11:02:34 GMT</pubDate>
    <dc:creator>Potato-soup</dc:creator>
    <dc:date>2020-01-22T11:02:34Z</dc:date>
    <item>
      <title>Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233214#M96314</link>
      <description>&lt;P&gt;I'm trying to filter out unneeded/unnecessary indicators from our O365 feed, but no matter where I apply the filters I am still receiving all of the indicators.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I would like to filter on only indicators available over Express Route, and in the JSON you can see that 'expressRoute' is an available field with a boolean value of either true or false, but trying to add an infilter or outfilter condition for 'o365_expressRoute' doesn't work. I just end up with 0 indicators in my output due to the drop all at the end of my condition statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone explain to me why this is? There's even an available prototype that comes with MineMeld for filtering out 3rd Party Integrations from the O365 API feed, and even that doesn't work.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:55:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233214#M96314</guid>
      <dc:creator>benime</dc:creator>
      <dc:date>2018-10-01T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233780#M96315</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/86056"&gt;@benime&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;just attempted to reproduce your experience in my lab unsuccesfully. In my case, the input filter for the Express Route condition works like a charm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my infilter configuration:&lt;/P&gt;
&lt;PRE&gt;infilters:
-   actions:
    - accept
    conditions:
    - __method == 'withdraw'
    name: accept withdraws
-   actions:
    - accept
    conditions:
    - o365_expressRoute == true
    name: accept o365_expressRoute
-   actions:
    - drop
    name: drop all
&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 21:17:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233780#M96315</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-10-03T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233789#M96316</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/6710"&gt;@xhoms&lt;/a&gt;, It's funny because I was using almost the exact same syntax/conditions you were; except I was using single quotes around the 'true' in the o365_expressRoute condition. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I removed those it works as expected, now.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks for following up!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 22:05:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/233789#M96316</guid>
      <dc:creator>benime</dc:creator>
      <dc:date>2018-10-03T22:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/237920#M96317</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to accomplish something similar, but instead of filtering on expressRoute I wanted to filter on "required" JSON field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems I have able to accomplish this, but I still don't understnad why you need to append "o365_" to the name of the JSON field:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;infilters:
-   actions:
    - accept
    conditions:
    - __method == 'withdraw'
    name: accept withdraws
-   actions:
    - accept
    conditions:
    - type == 'URL'
    - o365_required == true
    name: accept required URL only
-   actions:
    - drop
    name: drop all
whitelist_prefixes:
- wl&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Oct 2018 10:26:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/237920#M96317</guid>
      <dc:creator>aleksandar.astardzhiev</dc:creator>
      <dc:date>2018-10-31T10:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/238570#M96318</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/70130"&gt;@aleksandar.astardzhiev&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;current O365_API miner implementation prefixes the attributes 'expressRoute', 'optionalImpact', 'serviceArea', 'tcpPorts', 'udpPorts', 'category' and 'required' with the 'o365_' string. That is the reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/minemeld-core/blob/dc261fe35614b87ab554b08a0e2a7962850bb23d/minemeld/ft/o365.py#L276" target="_self"&gt;https://github.com/PaloAltoNetworks/minemeld-core/blob/dc261fe35614b87ab554b08a0e2a7962850bb23d/minemeld/ft/o365.py#L276&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 11:59:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/238570#M96318</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-11-05T11:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/271722#M96319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/6710"&gt;@xhoms&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I would like to filter for indicators with the category "allow" or "optimize" only. How would you define the filter for that? I cannot find that much information regarding filtering using a processor. I hope my steps are correct?&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;create a new prototype of the IPv4Generic processor&lt;/LI&gt;
&lt;LI&gt;create infilters for that&lt;BR /&gt;
&lt;PRE&gt;infilters:
-   actions:
    - accept
    conditions:
    - __method == 'withdraw'
    name: accept withdraws
-   actions:
    - accept
    conditions:
    - o365_category == 'Allow'
    name: accept o365_categoryAllow&lt;BR /&gt;-   actions:&lt;BR /&gt;    - accept&lt;BR /&gt;    conditions:&lt;BR /&gt;    - o365_category == 'Optimize'&lt;BR /&gt;    name: accept o365_categoryOptimize
-   actions:
    - drop
    name: drop all&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;create a processor node using the previously selfmade prototype&lt;/LI&gt;
&lt;LI&gt;set as input the o365 miner&lt;/LI&gt;
&lt;LI&gt;create a output / feed node using the HCGreenWithValue prototype &amp;amp; set as input the selfmade processor&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:55:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/271722#M96319</guid>
      <dc:creator>CyberforceHero203</dc:creator>
      <dc:date>2019-06-20T14:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot apply advanced filters for O365 API feeds</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/307551#M96320</link>
      <description>&lt;P&gt;I have created a feed of O365 URLs&amp;nbsp;&lt;SPAN&gt;filtering on expressRoute = True&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;infilters:
-   actions:
    - accept
    conditions:
    - __method == 'withdraw'
    name: accept withdraws
-   actions:
    - accept
    conditions:
    - o365_expressRoute == true
    name: accept o365_expressRoute
-   actions:
    - drop
    name: drop all&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;All works fine...&amp;nbsp; However,&lt;/P&gt;&lt;P&gt;Comparing the results from Minemeld with the output from a bit of PowerShell, which does the same job. Minemeld does not include the URL&amp;nbsp;&lt;STRONG&gt;*.outlook.office.com&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;(Invoke-WebRequest -Uri $EndpointUri  | ConvertFrom-Json) | % { 
    if ($_.expressRoute) { $_.urls }
     }&lt;/LI-CODE&gt;&lt;P&gt;I can not see why.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 11:02:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/cannot-apply-advanced-filters-for-o365-api-feeds/m-p/307551#M96320</guid>
      <dc:creator>Potato-soup</dc:creator>
      <dc:date>2020-01-22T11:02:34Z</dc:date>
    </item>
  </channel>
</rss>

