<?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: unable to list the unmatched values compared with lookup file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583522#M203205</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;, I am getting&amp;nbsp; both&amp;nbsp; matched&amp;nbsp; unmatched&amp;nbsp; signature values as result when compared with lookuptable,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Is there any way i can get only the signature values that are not present in lookup file.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 10:44:45 GMT</pubDate>
    <dc:creator>rboya_splunk</dc:creator>
    <dc:date>2022-02-03T10:44:45Z</dc:date>
    <item>
      <title>unable to list the unmatched values compared with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583497#M203185</link>
      <description>&lt;P&gt;I am trying to identify the values that are in the logs not matching with content in the lookup file. But i am not getting the results.&lt;/P&gt;&lt;P&gt;Here is the sample log&lt;/P&gt;&lt;P data-unlink="true"&gt;192.168.198.92 - - [22/Dec/2002:23:08:37 -0400] "GET / HTTP/1.1" 200 6394 www.yahoo.com&amp;nbsp; "xab|xac|za1"&lt;BR /&gt;192.168.198.92 - - [22/Dec/2002:23:08:38 -0400] "GET /images/logo.gif HTTP/1.1" 200 807 www.yahoo.com&amp;nbsp; "None"&lt;BR /&gt;192.168.198.92 - - [22/Dec/2002:23:08:37 -0400] "GET / HTTP/1.1" 200 6394 www.yahoo.com&amp;nbsp; "xab|xac|za1"&lt;BR /&gt;192.168.72.177 - - [22/Dec/2002:23:32:14 -0400] "GET /news/Tshirts.html HTTP/1.1" 200 3500 www.yahoo.com&amp;nbsp; "yif"&lt;BR /&gt;192.168.72.177 - - [22/Dec/2002:23:32:14 -0400] "GET /news/Jeans.html HTTP/1.1" 200 3500 www.yahoo.com&amp;nbsp; "zab|yif|ba1|ba1"&lt;BR /&gt;192.168.72.177 - - [22/Dec/2002:23:32:14 -0400] "GET /news/Polos.html HTTP/1.1" 200 3500 www.yahoo.com&amp;nbsp; "zab|yif"&lt;/P&gt;&lt;P&gt;the last value of the log( "xab|xac|za1") is stored as signature field in splunk. which says multiple signatures matched the requests. For few requests only one signature might have triggered.&lt;BR /&gt;I would like to compare the signatures in the logs with the list of signatures in the lookup table.&lt;BR /&gt;example lookup:&lt;/P&gt;&lt;P&gt;lookup table signature.csv and it contains these values:&lt;BR /&gt;signature_lookup&lt;BR /&gt;xab&lt;BR /&gt;yab&lt;BR /&gt;xac&lt;BR /&gt;zac&lt;BR /&gt;zal&lt;BR /&gt;yif&lt;BR /&gt;zab&lt;BR /&gt;bal&lt;/P&gt;&lt;P&gt;I have tried multiped queries for splitting and checking for those signatures in lookup file and if it not matched then only that result should display.&lt;BR /&gt;But i am getting both matched and unmatched content as query result. Don't know where i am doing the mistake.&lt;BR /&gt;&lt;BR /&gt;index=* source type=* NOT(signature="None")&lt;BR /&gt;|makemv delim = "|" signature&lt;BR /&gt;|mvexpand signature&lt;BR /&gt;|lookup signature.csv signature_lookup&lt;BR /&gt;|search signature!=signature_lookup&lt;BR /&gt;|table signature | dedup signature&lt;/P&gt;&lt;P&gt;Also tried below query but no luck...&lt;BR /&gt;&lt;BR /&gt;index=* sourcetype=* NOT(signature="None")&lt;BR /&gt;|eval sign_split=mvindex(split(signature,"|"),0)&lt;BR /&gt;|lookup signature.csv signature_lookup as sign_split&lt;BR /&gt;|table signature | dedup signature&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can some one help me in resolving this&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:04:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583497#M203185</guid>
      <dc:creator>rboya_splunk</dc:creator>
      <dc:date>2022-02-03T09:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: unable to list the unmatched values compared with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583509#M203196</link>
      <description>&lt;P&gt;Firstly, you'd probably want a condition of&lt;/P&gt;&lt;PRE&gt;signature!="None"&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;NOT signature="None"&lt;/PRE&gt;&lt;P&gt;These are two different conditions - empty signature field matches the second one but doesn't match the first one.&lt;/P&gt;&lt;P&gt;In general, try adding pipeline steps one after another so you can see when it's not going the way you think it should.&lt;/P&gt;&lt;P&gt;In your case it's probably this one:&lt;/P&gt;&lt;PRE&gt;|search signature!=signature_lookup&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The search command does a simple search but cannot - like you want it to - compare dynamic values.&lt;/P&gt;&lt;P&gt;You need the where command&lt;/P&gt;&lt;PRE&gt;| where signature!=signature_lookup&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You should however first try trimming your search to right after the lookup and check whether the values are really what you want them to be.&lt;/P&gt;&lt;P&gt;Oh, and don't table the result early. And you might also try stats values instead of dedup if that's what you want to achieve.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583509#M203196</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-03T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: unable to list the unmatched values compared with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583511#M203198</link>
      <description>&lt;P&gt;After mvexpand signature, try adding this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| append
    [| inputlookup signature.csv 
    | eval incsv=1
    | rename signature_lookup as signature
    | fields signature incsv]
| eventstats values(incsv) as incsv by signature
| where isnull(incsv)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583511#M203198</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-03T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: unable to list the unmatched values compared with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583522#M203205</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;, I am getting&amp;nbsp; both&amp;nbsp; matched&amp;nbsp; unmatched&amp;nbsp; signature values as result when compared with lookuptable,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Is there any way i can get only the signature values that are not present in lookup file.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583522#M203205</guid>
      <dc:creator>rboya_splunk</dc:creator>
      <dc:date>2022-02-03T10:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: unable to list the unmatched values compared with lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583525#M203208</link>
      <description>&lt;P&gt;Can you share your search query which is giving you incorrect results? Also, please share some example events which are being incorrectly retained.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 10:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/unable-to-list-the-unmatched-values-compared-with-lookup-file/m-p/583525#M203208</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-03T10:54:58Z</dc:date>
    </item>
  </channel>
</rss>

