{"id":28293,"date":"2021-01-06T14:02:20","date_gmt":"2021-01-06T14:02:20","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=28293"},"modified":"2021-01-06T14:02:20","modified_gmt":"2021-01-06T14:02:20","slug":"answer-by-warren-for-multifields-search-in-splunk-without-knowing-field-names","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=28293","title":{"rendered":"Answer by warren for Multifields search in Splunk without knowing field names"},"content":{"rendered":"<p>Not knowing the field name is <em>definitely<\/em> going to be tricky when it comes to processing it later, but what you&#8217;ll want to do is this:<\/p>\n<pre><code>index=ndx sourcetype=srctp &quot;V1&quot; &quot;V2&quot;\n<\/code><\/pre>\n<p><a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Search\/Booleanexpressions\" rel=\"nofollow noreferrer\">Be default<\/a>, Splunk <code>AND<\/code>s all <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/UnderstandingSPLsyntax\" rel=\"nofollow noreferrer\">search<\/a> terms.<\/p>\n<p>So if you&#8217;re looking for &quot;V1&quot; and &quot;V2&quot; in the same event, you just need to quote all of the individual terms you&#8217;re looking for.<\/p>\n<p>Depending on your data, you may get better performance using <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/Search\/UseCASEandTERMtomatchphrases#When_to_use_TERM\" rel=\"nofollow noreferrer\"><code>TERM()<\/code><\/a>, too:<\/p>\n<pre><code>index=ndx sourctype=srctp TERM(&quot;V1&quot;) TERM(&quot;V2&quot;)\n<\/code><\/pre>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/65596568\/multifields-search-in-splunk-without-knowing-field-names\/65597115#65597115<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not knowing the field name is definitely going to be tricky when it comes to processing it later, but what you&#8217;ll want to do is this: index=ndx sourcetype=srctp &quot;V1&quot; &quot;V2&quot; Be default, Splunk ANDs all search terms. So if you&#8217;re looking for &quot;V1&quot; and &quot;V2&quot; in the same event, you just need to quote all &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=28293\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Multifields search in Splunk without knowing field names<\/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-28293","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\/28293","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=28293"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/28293\/revisions"}],"predecessor-version":[{"id":28294,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/28293\/revisions\/28294"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28293"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=28293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}