{"id":61030,"date":"2022-07-26T21:22:47","date_gmt":"2022-07-26T21:22:47","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=61030"},"modified":"2022-07-26T21:22:47","modified_gmt":"2022-07-26T21:22:47","slug":"answer-by-warren-for-splunk-search-doesnt-match-csv-lookup-file","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=61030","title":{"rendered":"Answer by warren for Splunk search doesn&#8217;t match CSV lookup file"},"content":{"rendered":"<p>There are a couple ways to do what you&#8217;re asking for<\/p>\n<p>The first is to use the lookup table as a filter in your initial search, like this:<\/p>\n<pre><code>index=ndx sourcetype=srctp NOT [|inputlookup mylookup | fields ip]\n<\/code><\/pre>\n<p>Or, do a <code>lookup<\/code>, and keep all the entries that have a null value in the lookup&#8217;s other field &#8230; like this:<\/p>\n<pre><code>index=ndx sourcetype=srctp\n| lookup mylookup ip OUTPUT otherfield AS filterfield\n| where isnull(filterfield)\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/27468553\/splunk-search-doesnt-match-csv-lookup-file\/73129857#73129857<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a couple ways to do what you&#8217;re asking for The first is to use the lookup table as a filter in your initial search, like this: index=ndx sourcetype=srctp NOT [|inputlookup mylookup | fields ip] Or, do a lookup, and keep all the entries that have a null value in the lookup&#8217;s other field &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=61030\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk search doesn&#8217;t match CSV lookup file<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[991],"keyring_services":[],"class_list":["post-61030","post","type-post","status-publish","format-standard","hentry","category-blih","tag-stackexchange"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/61030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61030"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/61030\/revisions"}],"predecessor-version":[{"id":61031,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/61030\/revisions\/61031"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61030"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=61030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}