<?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: filter out events from lookuptable in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255278#M3172</link>
    <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature
| search NOT [|inputlookup substantialincreasesignature|fields signature]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; &lt;BR /&gt;
It could be the field names returned by the data model doesn't match the field name in lookup. Replace the inputlookup query with this in above&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup substantialincreasesignature | table signature | rename signature with ExactFieldNameFromDataModelResult]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get the ExactFieldNameFromDataModelResult, run your base search and check the name of signature field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Mar 2016 18:28:55 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-21T18:28:55Z</dc:date>
    <item>
      <title>filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255276#M3170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the correlation rule-Substantial Increase In Events enabled but I just want to fine tune this rule based on our environment.&lt;/P&gt;

&lt;P&gt;I dont want this rule to fire when there is a match in the signature that is defined in the lookuptable "substantialincreasesignature.csv".&lt;/P&gt;

&lt;P&gt;But as soon as I run this it is throwing an error,can you check out this for me.&lt;/P&gt;

&lt;P&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature| search IDS_Attacks.signature!=* [inputlookup substantialincreasesignature.csv]&lt;/P&gt;

&lt;P&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature as signatures AND NOT[|inputlookup substantialincreasesignature|fields signature]&lt;/P&gt;

&lt;P&gt;Both search I tried but no results:(&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255276#M3170</guid>
      <dc:creator>benmon</dc:creator>
      <dc:date>2020-09-29T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255277#M3171</link>
      <description>&lt;P&gt;You say it's throwing an error - what error?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 17:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255277#M3171</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-03-21T17:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255278#M3172</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature
| search NOT [|inputlookup substantialincreasesignature|fields signature]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt; &lt;BR /&gt;
It could be the field names returned by the data model doesn't match the field name in lookup. Replace the inputlookup query with this in above&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup substantialincreasesignature | table signature | rename signature with ExactFieldNameFromDataModelResult]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get the ExactFieldNameFromDataModelResult, run your base search and check the name of signature field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2016 18:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255278#M3172</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-21T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255279#M3173</link>
      <description>&lt;P&gt;somesoni2,&lt;/P&gt;

&lt;P&gt;your query is working fine,but it is showing data that is present in the lookuptable 'substantialincreasesignature'.I dont want to see the data that I have specified in the lookup table.&lt;/P&gt;

&lt;P&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature&lt;BR /&gt;
 | search NOT [|inputlookup substantialincreasesignature|fields signature]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255279#M3173</guid>
      <dc:creator>benmon</dc:creator>
      <dc:date>2020-09-29T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255280#M3174</link>
      <description>&lt;P&gt;| tstats allow_old_summaries=true count,values(IDS_Attacks.tag) as orig_tag from datamodel=Intrusion_Detection by IDS_Attacks.signature&lt;BR /&gt;
 | search NOT [|inputlookup substantialincreasesignature|fields IDS_Attacks.signature]&lt;/P&gt;

&lt;P&gt;is showing results that is in lookuptable.&lt;/P&gt;

&lt;P&gt;How to get the events that is not in the lookuptable?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255280#M3174</guid>
      <dc:creator>benmon</dc:creator>
      <dc:date>2020-09-29T09:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: filter out events from lookuptable</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255281#M3175</link>
      <description>&lt;P&gt;See the updated section of the answer&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 14:20:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/filter-out-events-from-lookuptable/m-p/255281#M3175</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-23T14:20:03Z</dc:date>
    </item>
  </channel>
</rss>

