<?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: What eval function returns IP addresses that are not in my input lookup file? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402589#M26385</link>
    <description>&lt;P&gt;What is the point of the &lt;CODE&gt;localop&lt;/CODE&gt; subsearch?  In a distributed environment, it won't find any data since it won't run on indexers.  The leading &lt;CODE&gt;stats&lt;/CODE&gt; command produces a zero that is not used.  The &lt;CODE&gt;eval&lt;/CODE&gt; is a literal string that is then decomposed - why not hardcode the decomposed values?&lt;BR /&gt;
How are you fetching the data from SharePoint?  Can you search for the IP address fetched from SharePoint and discard it if it's already in Splunk?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 13:29:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-02-21T13:29:53Z</dc:date>
    <item>
      <title>What eval function returns IP addresses that are not in my input lookup file?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402585#M26381</link>
      <description>&lt;P&gt;I created a dashboard with a lookup file containing IP addresses and domains. I would like to search the dashboard and expect an output of only IP addresses or Domains that are not in my lookup files.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 03:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402585#M26381</guid>
      <dc:creator>MKAMARA</dc:creator>
      <dc:date>2019-02-20T03:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: What eval function returns IP addresses that are not in my input lookup file?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402586#M26382</link>
      <description>&lt;P&gt;This is no &lt;CODE&gt;eval&lt;/CODE&gt; function to tell you if some value is not part of a lookup file.  In fact, there are no &lt;CODE&gt;eval&lt;/CODE&gt; functions at all for lookups.&lt;/P&gt;

&lt;P&gt;One way to determine that something is not in a lookup is to do the lookup and see if the output is null.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup mylookup.csv ipaddress OUTPUT domain | eval domainPresent=if(isnull(domain), "false", "true") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402586#M26382</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-20T14:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: What eval function returns IP addresses that are not in my input lookup file?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402587#M26383</link>
      <description>&lt;P&gt;Something like -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index name&amp;gt; NOT [ | inputlookup IPs.csv ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where the common field such as &lt;CODE&gt;IP&lt;/CODE&gt; is in the index as well as in the lookup.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402587#M26383</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-02-20T22:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: What eval function returns IP addresses that are not in my input lookup file?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402588#M26384</link>
      <description>&lt;P&gt;Rich, Thank you for the response and apologies for the wrong choice of words. I am fetching data from a SharePoint site, within those data, there are sets of IP addresses that I am searching against. All I want to know is what is currently not stored in the sharepoint site. I dont know if this is clear enough. This is my current search that returns data that matches index="my_sharepoint" sourcetype="deadzone_block" &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[| localop &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| stats count &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| eval entry="block_string"&lt;BR /&gt;
&amp;nbsp;| eval entry=trim(entry) &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=entry "(?.*?)(\r|\s|$)" max_match=0 &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| mvexpand search &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| table search &lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| format ]&lt;BR /&gt;
| table my_table. &lt;/P&gt;

&lt;P&gt;Now how can I change this to return only IPs and domains not match in those set of data?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402588#M26384</guid>
      <dc:creator>MKAMARA</dc:creator>
      <dc:date>2020-09-29T23:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: What eval function returns IP addresses that are not in my input lookup file?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402589#M26385</link>
      <description>&lt;P&gt;What is the point of the &lt;CODE&gt;localop&lt;/CODE&gt; subsearch?  In a distributed environment, it won't find any data since it won't run on indexers.  The leading &lt;CODE&gt;stats&lt;/CODE&gt; command produces a zero that is not used.  The &lt;CODE&gt;eval&lt;/CODE&gt; is a literal string that is then decomposed - why not hardcode the decomposed values?&lt;BR /&gt;
How are you fetching the data from SharePoint?  Can you search for the IP address fetched from SharePoint and discard it if it's already in Splunk?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-eval-function-returns-IP-addresses-that-are-not-in-my-input/m-p/402589#M26385</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-21T13:29:53Z</dc:date>
    </item>
  </channel>
</rss>

