<?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: Filtered list in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670638#M11275</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;with the above search you have all the records not in csv.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 13:10:51 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-12-04T13:10:51Z</dc:date>
    <item>
      <title>Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670613#M11270</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I have a dashboard that displays CSV&lt;BR /&gt;I want to add lists for him to display that are not in the CSV&lt;BR /&gt;But the list I'm adding includes the records that are in the CSV&lt;BR /&gt;I want to create a list that will not include the records in the CSV&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;This code gets me the whole list&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| index="------" interface="--"
|stats values(interface) as importers&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;This code brings me the list from the CSV&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="------------" code=*
| search
         [|inputlookup importers.csv
          |lookup importers.csv interfaceName OUTPUTNEW system environment timerange
          |stats
                 values(interfaceName) as importers_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a code that brings me the list without the records in the CSV&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 10:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670613#M11270</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-12-04T10:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670614#M11271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand: in the importers.csv file you have a list of interfaces and you want to filter your results using the above lookup or you want to check if they are present in the index?&lt;/P&gt;&lt;P&gt;if you want to filter your results using the lookup, you can use a subsearch, putting attention that the field names in main and sub search are the same (in your case interfaceName):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="------------" code=* [|inputlookup importers.csv | fields interfaceName ]
|stats values(interfaceName) as importers_csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If instead you want to know if there are interfaceNames in the lookup not present in the results of the main search, you have to run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="------------" code=* 
| stats count BY interfaceName 
| append [ | inputlookup importers.csv | eval count=0 |fields interfaceName count ]
| stats sum(count) AS total BY interfaceName
| eval status=if(total=0,"Not present","present")
| table interfaceName status&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 10:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670614#M11271</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-04T10:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670616#M11272</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your quick response&lt;/P&gt;&lt;P&gt;I have two lists&lt;/P&gt;&lt;P&gt;1. importers - includes many importers&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. importers_csv -&amp;nbsp;contains some of the importers from the first list&lt;/P&gt;&lt;P&gt;I want a list&amp;nbsp;which will contain the importers that are not in the CSV file&lt;/P&gt;&lt;P&gt;How to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 10:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670616#M11272</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-12-04T10:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670623#M11273</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you have to use the first solution:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup importers WHERE NOT [ | inputlookup importers_csv | fields interfaceName ] &lt;/LI-CODE&gt;&lt;P&gt;put attention that the field names are the same (interfaceName).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 11:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670623#M11273</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-04T11:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670632#M11274</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want all records that&amp;nbsp;&lt;STRONG&gt;not in&amp;nbsp;&lt;/STRONG&gt;csv&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 12:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670632#M11274</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2023-12-04T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtered list</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670638#M11275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;with the above search you have all the records not in csv.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 13:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Filtered-list/m-p/670638#M11275</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-04T13:10:51Z</dc:date>
    </item>
  </channel>
</rss>

