<?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: Folder and File exclusions wildcard question in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543184#M4418</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anlynch,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With question A, i mean that i need to exclude all the&amp;nbsp;possibly existing level of nested subfolders, without having to indicate them explicitly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\temp\file.pdf&lt;/P&gt;
&lt;P&gt;C:\temp\folder1\folder1a\file.xml&lt;/P&gt;
&lt;P&gt;C:\temp\folder2\folder2a\folder2a1\file.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that C:\temp\* will works even for the files on the nested folders ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For question B: if i need to exclude all XML on any existing file systems, could i write:&amp;nbsp;*\*.xml ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 13:22:24 GMT</pubDate>
    <dc:creator>MatteoNatalicchio</dc:creator>
    <dc:date>2023-05-24T13:22:24Z</dc:date>
    <item>
      <title>Folder and File exclusions wildcard question</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543018#M4406</link>
      <description>&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Add-a-New-Malware-Security-Profile" target="_blank" rel="noopener"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Add-a-New-Malware-Security-Profile&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The docs says:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="cmd"&gt;(Optional) Add files and folders to your allow list to exclude them from the examination.&lt;/P&gt;
&lt;DIV class="orderedlist"&gt;
&lt;OL class="orderedlist" type="1"&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;&lt;SPAN class="guilabel"&gt;+Add&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a file or folder.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="listitem"&gt;
&lt;P&gt;Specify the path and press&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="bold"&gt;&lt;STRONG&gt;Enter&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or click the check mark when done. You can also use a wildcard to match files and folders containing a partial name. Use&amp;nbsp;&lt;STRONG class="userinput"&gt;&lt;CODE class="hljs language-undefined"&gt;?&lt;/CODE&gt;&lt;/STRONG&gt;&amp;nbsp;to match a single character or&amp;nbsp;&lt;STRONG class="userinput"&gt;&lt;CODE class="hljs language-undefined"&gt;*&lt;/CODE&gt;&lt;/STRONG&gt;&amp;nbsp;to match any string of characters. &lt;FONT size="4"&gt;&lt;STRONG&gt;To match a folder, you must terminate the path with * to match all files in the folder (for example,&amp;nbsp;&lt;CODE class="filename hljs language-makefile"&gt;&lt;SPAN class="hljs-section"&gt;c:\temp\*&lt;/SPAN&gt;&lt;/CODE&gt;).&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;A ) What if i want to match all folders under a certain path?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Does (c:\temp\*) match c:\temp\folder1\file.xml ? (i don't think so)&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I&amp;nbsp;don't necessarily know how many folders there are, I need to be able to match any number of subfolders&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;B ) Or what if I want to match any file having a certain extension anywhere in the file system? &lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;(all file ending with .xml as an example)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 May 2023 12:30:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543018#M4406</guid>
      <dc:creator>MatteoNatalicchio</dc:creator>
      <dc:date>2023-05-23T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Folder and File exclusions wildcard question</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543112#M4409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208351"&gt;@MatteoNatalicchio&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out through LIVEcommunity!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to break your questions apart and answer them for clarity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;A ) What if i want to match all folders under a certain path?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Does (c:\temp\*) match c:\temp\folder1\file.xml ? (i don't think so)&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I&amp;nbsp;don't necessarily know how many folders there are, I need to be able to match any number of subfolders&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Simply put, yes.&amp;nbsp; C:\temp\* covers all files and folder in the directory. Doesn't matter how many other folders are contained within, this encompasses them all.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;B ) Or what if I want to match any file having a certain extension anywhere in the file system?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;(all file ending with .xml as an example)&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;In this example you could do something like C:\Temp\*.xml.&amp;nbsp; The addition of the '.xml' means it will only search for .xml files in the Temp directory.&amp;nbsp; You could something like C:\*\*.xml.&amp;nbsp; Where the first '*' could represent any number of nested folders and target files in those folders ending with the ".xml" extension.&amp;nbsp; I strongly recommended testing in your own environment to confirm this works for your usecase.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I hope you find this information helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 01:26:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543112#M4409</guid>
      <dc:creator>anlynch</dc:creator>
      <dc:date>2023-05-24T01:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Folder and File exclusions wildcard question</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543184#M4418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anlynch,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With question A, i mean that i need to exclude all the&amp;nbsp;possibly existing level of nested subfolders, without having to indicate them explicitly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\temp\file.pdf&lt;/P&gt;
&lt;P&gt;C:\temp\folder1\folder1a\file.xml&lt;/P&gt;
&lt;P&gt;C:\temp\folder2\folder2a\folder2a1\file.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that C:\temp\* will works even for the files on the nested folders ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For question B: if i need to exclude all XML on any existing file systems, could i write:&amp;nbsp;*\*.xml ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 13:22:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543184#M4418</guid>
      <dc:creator>MatteoNatalicchio</dc:creator>
      <dc:date>2023-05-24T13:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Folder and File exclusions wildcard question</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543200#M4421</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208351"&gt;@MatteoNatalicchio&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For question A:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, what I provided earlier will work for any file or folder nested in the C:\Temp\ Directory.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For questions B)&lt;/P&gt;
&lt;P&gt;I think that would work.&amp;nbsp; To be sure though, it's best to test it in your own environment and observer for any potentially unwanted behaviors.&amp;nbsp; Wildcards are powerful tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:39:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/folder-and-file-exclusions-wildcard-question/m-p/543200#M4421</guid>
      <dc:creator>anlynch</dc:creator>
      <dc:date>2023-05-24T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

