{"id":32551,"date":"2021-03-16T13:22:24","date_gmt":"2021-03-16T13:22:24","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=32551"},"modified":"2021-03-16T13:22:24","modified_gmt":"2021-03-16T13:22:24","slug":"answer-by-warren-for-splunk-query-not-endswith","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=32551","title":{"rendered":"Answer by warren for Splunk query not endswith"},"content":{"rendered":"<p>You can do this with a <code>search<\/code> and <code>where<\/code> clause:<\/p>\n<pre><code>| inputlookup myfile.csv \n| search support_group=&quot;mygroup-Linux&quot; u_sec_dom=&quot;Normal Secure&quot;\n| where !match(fqdn,&quot;udc.net$&quot;) AND !match(fqdn,&quot;htc.com$&quot;) \n<\/code><\/pre>\n<p>Or just a single <code>search<\/code> clause:<\/p>\n<pre><code>| inputlookup myfile.csv\n| search support_group=&quot;mygroup-Linux&quot; u_sec_dom=&quot;Normal Secure&quot; NOT (fqdn IN(&quot;*udc.net&quot;,&quot;*htc.com&quot;)\n<\/code><\/pre>\n<p>You can also rewrite the <code>IN()<\/code> thusly:<\/p>\n<pre><code>(fqdn=&quot;*udc.net&quot; OR fqdn=&quot;*htc.com&quot;)\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/66643257\/splunk-query-not-endswith\/66655995#66655995<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can do this with a search and where clause: | inputlookup myfile.csv | search support_group=&quot;mygroup-Linux&quot; u_sec_dom=&quot;Normal Secure&quot; | where !match(fqdn,&quot;udc.net$&quot;) AND !match(fqdn,&quot;htc.com$&quot;) Or just a single search clause: | inputlookup myfile.csv | search support_group=&quot;mygroup-Linux&quot; u_sec_dom=&quot;Normal Secure&quot; NOT (fqdn IN(&quot;*udc.net&quot;,&quot;*htc.com&quot;) You can also rewrite the IN() thusly: (fqdn=&quot;*udc.net&quot; OR fqdn=&quot;*htc.com&quot;) from User warren &#8211; Stack &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=32551\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Splunk query not endswith<\/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-32551","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\/32551","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=32551"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/32551\/revisions"}],"predecessor-version":[{"id":32552,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/32551\/revisions\/32552"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32551"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=32551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}