{"id":61018,"date":"2022-07-26T20:37:22","date_gmt":"2022-07-26T20:37:22","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=61018"},"modified":"2022-07-26T20:37:22","modified_gmt":"2022-07-26T20:37:22","slug":"answer-by-warren-for-searching-for-specific-values-in-splunk-query","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=61018","title":{"rendered":"Answer by warren for Searching for specific values in Splunk query"},"content":{"rendered":"<p>For readibility, try using <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/Search#4._Using_the_IN_operator\" rel=\"nofollow noreferrer\"><code>IN()<\/code><\/a>:<\/p>\n<pre><code>index=sne host=nwbsnep* sourcetype IN(sne_CAS_elilogs,sne_CMS_elilogs) Service.Operation IN(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;,&quot;G&quot;,&quot;H&quot;)\n<\/code><\/pre>\n<p>The issue <em>seems<\/em> to have been, though, that in your second parenthesized set of <code>OR<\/code>s, you had this:<\/p>\n<pre><code>OR &quot;Service.Operation&quot;=&quot;D &quot;OR &quot;Service.Operation&quot;=&quot;E&quot; OR &quot;Service.Operation&quot;=&quot;F&quot; \n<\/code><\/pre>\n<p>In SPL, the <code>OR<\/code> has to be separated from what it&#8217;s or&#8217;ing by at least one space<\/p>\n<p>You had one slammed against a quote mark<\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/58915438\/searching-for-specific-values-in-splunk-query\/73129443#73129443<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For readibility, try using IN(): index=sne host=nwbsnep* sourcetype IN(sne_CAS_elilogs,sne_CMS_elilogs) Service.Operation IN(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;,&quot;F&quot;,&quot;G&quot;,&quot;H&quot;) The issue seems to have been, though, that in your second parenthesized set of ORs, you had this: OR &quot;Service.Operation&quot;=&quot;D &quot;OR &quot;Service.Operation&quot;=&quot;E&quot; OR &quot;Service.Operation&quot;=&quot;F&quot; In SPL, the OR has to be separated from what it&#8217;s or&#8217;ing by at least one space You had one &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=61018\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Searching for specific values in Splunk query<\/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-61018","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\/61018","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=61018"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/61018\/revisions"}],"predecessor-version":[{"id":61019,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/61018\/revisions\/61019"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61018"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=61018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}