<?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: How to exclude files from results using a lookup table with wildcard support? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754305#M242847</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is working fine but I would like to replace the bunch of AND NOT FICHIER="filename" by a lookup that will contain all of those file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=my_index&lt;BR /&gt;| eval APL=if(APL=="", "n/a", APL)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;| where NOT FICHIER="DEVLP.FEXTORG.O04750.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O04746.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O01758.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O02104.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O02104.PC.REC.J04525.Y"&lt;BR /&gt;AND NOT FICHIER="DEV.PDOI.J04AVIS"&lt;BR /&gt;AND NOT FICHIER="CICSDEV.DFHJ04.A0007671.DATA"&lt;BR /&gt;AND NOT like(FICHIER, "%J69%")&lt;/P&gt;&lt;P&gt;| lookup SICListeRespCodeApplication_lookup CodeApplication as APL OUTPUT ResponsableTI Courriel&lt;BR /&gt;| eval ResponsableTI=trim(ResponsableTI), Courriel=trim(Courriel)&lt;BR /&gt;| stats count by ResponsableTI Courriel APL&lt;BR /&gt;| eval AppInfo = APL . " (" . count . ")"&lt;BR /&gt;| stats values(AppInfo) as Applications by ResponsableTI Courriel&lt;BR /&gt;| eval Applications = mvjoin(Applications, ", ")&lt;BR /&gt;| table ResponsableTI Courriel Applications&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ResponsableTI Courriel Applications&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;john.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;J25 (544), J37 (510)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;jane.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;E26 (33), E30 (2), E73 (8), J04 (401), J10 (42), J14 (1), J24 (9), J30 (15897), J32 (371), J34 (584), J36 (356), J76 (297), J96 (1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jim Doe&lt;/TD&gt;&lt;TD&gt;jim.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;J45 (98), JLE (2)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Oct 2025 16:07:13 GMT</pubDate>
    <dc:creator>Splunked_Kid</dc:creator>
    <dc:date>2025-10-14T16:07:13Z</dc:date>
    <item>
      <title>How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754177#M242830</link>
      <description>&lt;P&gt;Hi Splunk Community,&lt;/P&gt;&lt;P&gt;I'm working on a search that analyzes an index containing records of file activity. Each event includes a field called FICHIER, which holds the name of the file.&lt;/P&gt;&lt;P&gt;I have two lookup tables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;ApplicationResponsibles.csv&lt;/STRONG&gt;&lt;BR /&gt;This contains mappings between application codes and their respective technical owners and email addresses.&lt;BR /&gt;Columns: CodeApplication, ResponsableTI, Courriel&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;FilesToExclude.csv&lt;/STRONG&gt;&lt;BR /&gt;This contains a list of filenames or filename patterns (with wildcards like *J69*) that should be excluded from the results.&lt;BR /&gt;Column: Motif&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;H3&gt;🧩 &lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;I want to produce a report that lists:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Each application owner (ResponsableTI)&lt;/LI&gt;&lt;LI&gt;Their email (Courriel)&lt;/LI&gt;&lt;LI&gt;A list of application codes and the count of files associated with each code&lt;BR /&gt;&lt;STRONG&gt;excluding any file that matches a pattern in the FilesToExclude.csv lookup.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;🧪 &lt;STRONG&gt;What I’ve tried&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;I attempted to use a subsearch with format and like() to dynamically build a where NOT clause, but I ran into multiple issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;format doesn’t seem to work well with like() expressions.&lt;/LI&gt;&lt;LI&gt;lookup requires a key field, but I’m trying to use the lookup as a filter list.&lt;/LI&gt;&lt;LI&gt;mvmap() and mvfilter() seem promising, but I’m struggling to apply them correctly to compare each event’s FICHIER against all motifs in the exclusion list.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;H3&gt;🧠 &lt;STRONG&gt;What I need help with&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;What’s the best way to dynamically exclude files based on a list of patterns (wildcards) stored in a lookup table?&lt;/LI&gt;&lt;LI&gt;Is there a clean way to apply like(FICHIER, motif) across all motifs in the lookup?&lt;/LI&gt;&lt;LI&gt;Should I restructure the lookup or use a different approach entirely?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any guidance or examples would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2025 19:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754177#M242830</guid>
      <dc:creator>Splunked_Kid</dc:creator>
      <dc:date>2025-10-10T19:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754179#M242831</link>
      <description>&lt;P&gt;Start with something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index ... NOT [| inputlookup FilesToExclude.csv 
    | rename Motif as FICHIER
    | format]
| lookup ApplicationResponsibles.csv CodeApplication as code&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Oct 2025 20:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754179#M242831</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-10-10T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754303#M242846</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;Tanks for the answer, but there's other column in my lookup and it's trying to match the other colunm not needed.&amp;nbsp; For example my lookup contains : FICHIER, &lt;SPAN&gt;Approbateur&lt;/SPAN&gt;, &lt;SPAN&gt;Raison&lt;/SPAN&gt;, &lt;SPAN&gt;DateApprobation&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;If I look at the job inspection in the remotesearch it goes something like this:&lt;BR /&gt;&lt;SPAN&gt;(index=my index (NOT Approbateur="John Doe" OR NOT DateApprobation="2025-09-11" OR NOT FICHIER="DEVDLP.FEXTORG.O04750.PC.REC.J04525" OR NOT Raison="Non- pas a détruire : Le Contenue du fichier est remplacé par ce qui arrive du commerce électronique.") (NOT Approbateur="Jane Doe" OR NOT DateApprobation="2025-09-11" OR NOT FICHIER="DVLPET.FEXTORG.O04746.PC.REC.J04525" OR NOT Raison="Non- pas a détruire : Le Contenue du fichier est remplacé par ce qui arrive du commerce électronique.") (NOT Approbateur="Jim Doe" OR NOT DateApprobation="2025-09-11" etc...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I would need to see something like this instead:&lt;BR /&gt;&lt;BR /&gt;(index=my index (NOT FICHIER="DEVDLP.FEXTORG.O04750.PC.REC.J04525" OR NOT FICHIER="DVLPET.FEXTORG.O04746.PC.REC.J04525"&amp;nbsp; &amp;nbsp;etc...&lt;BR /&gt;&lt;BR /&gt;Is there a way to do that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 15:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754303#M242846</guid>
      <dc:creator>Splunked_Kid</dc:creator>
      <dc:date>2025-10-14T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754305#M242847</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is working fine but I would like to replace the bunch of AND NOT FICHIER="filename" by a lookup that will contain all of those file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=my_index&lt;BR /&gt;| eval APL=if(APL=="", "n/a", APL)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;| where NOT FICHIER="DEVLP.FEXTORG.O04750.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O04746.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O01758.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O02104.PC.REC.J04525"&lt;BR /&gt;AND NOT FICHIER="DEV.FEXTORG.O02104.PC.REC.J04525.Y"&lt;BR /&gt;AND NOT FICHIER="DEV.PDOI.J04AVIS"&lt;BR /&gt;AND NOT FICHIER="CICSDEV.DFHJ04.A0007671.DATA"&lt;BR /&gt;AND NOT like(FICHIER, "%J69%")&lt;/P&gt;&lt;P&gt;| lookup SICListeRespCodeApplication_lookup CodeApplication as APL OUTPUT ResponsableTI Courriel&lt;BR /&gt;| eval ResponsableTI=trim(ResponsableTI), Courriel=trim(Courriel)&lt;BR /&gt;| stats count by ResponsableTI Courriel APL&lt;BR /&gt;| eval AppInfo = APL . " (" . count . ")"&lt;BR /&gt;| stats values(AppInfo) as Applications by ResponsableTI Courriel&lt;BR /&gt;| eval Applications = mvjoin(Applications, ", ")&lt;BR /&gt;| table ResponsableTI Courriel Applications&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ResponsableTI Courriel Applications&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;john.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;J25 (544), J37 (510)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;jane.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;E26 (33), E30 (2), E73 (8), J04 (401), J10 (42), J14 (1), J24 (9), J30 (15897), J32 (371), J34 (584), J36 (356), J76 (297), J96 (1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jim Doe&lt;/TD&gt;&lt;TD&gt;jim.doe@gmail.com&lt;/TD&gt;&lt;TD&gt;J45 (98), JLE (2)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 16:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754305#M242847</guid>
      <dc:creator>Splunked_Kid</dc:creator>
      <dc:date>2025-10-14T16:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754306#M242848</link>
      <description>&lt;LI-CODE lang="markup"&gt;index ... NOT [| inputlookup FilesToExclude.csv 
    | rename Motif as FICHIER
    | fields - Approbateur DateApprobation Raison
    | format]
| lookup ApplicationResponsibles.csv CodeApplication as code&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Oct 2025 16:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754306#M242848</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-10-14T16:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude files from results using a lookup table with wildcard support?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754308#M242850</link>
      <description>&lt;P&gt;Super!&amp;nbsp; Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2025 17:16:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-files-from-results-using-a-lookup-table-with/m-p/754308#M242850</guid>
      <dc:creator>Splunked_Kid</dc:creator>
      <dc:date>2025-10-14T17:16:54Z</dc:date>
    </item>
  </channel>
</rss>

