{"id":60972,"date":"2022-07-25T20:12:33","date_gmt":"2022-07-25T20:12:33","guid":{"rendered":"https:\/\/merikebi.warrenmyers.com\/?p=60972"},"modified":"2022-07-25T20:12:33","modified_gmt":"2022-07-25T20:12:33","slug":"answer-by-warren-for-is-there-a-similar-command-to-multisearch-in-splunk-for-non-streaming-searches","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=60972","title":{"rendered":"Answer by warren for Is there a similar command to multisearch in Splunk for non-streaming searches?"},"content":{"rendered":"<p>Non-streaming commands, <a href=\"https:\/\/docs.splunk.com\/Splexicon:Non-streamingcommand\" rel=\"nofollow noreferrer\">by definition<\/a>, run on the Search Head that initiated the search &#8211; and nowhere else.<\/p>\n<p>They&#8217;re <em>typically<\/em> expected to run <em>after<\/em> all the streaming searches have happened, for any finalization\/manipulation of the returned data from all Search Peers running the search<\/p>\n<p>If you run non-streaming commands earlier than necessary in your SPL, you will slow the search down (potentially very dramatically)<\/p>\n<p>Using the Splexicon example cited above, if you run a <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/sort\" rel=\"nofollow noreferrer\"><code>sort<\/code><\/a> &quot;early&quot; (eg before <a href=\"https:\/\/docs.splunk.com\/Documentation\/Splunk\/latest\/SearchReference\/stats\" rel=\"nofollow noreferrer\"><code>stats<\/code><\/a>), you force the initiating Search Head to do <em>all<\/em> of the data processing, instead of merely collating what every eligible Search Peer has preprocessed into a final resultset<\/p>\n<p>from User warren &#8211; Stack Overflow https:\/\/stackoverflow.com\/questions\/60343986\/is-there-a-similar-command-to-multisearch-in-splunk-for-non-streaming-searches\/73114857#73114857<br \/>\nvia <a href=\"https:\/\/ifttt.com\/?ref=da&#038;site=wordpress\">IFTTT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Non-streaming commands, by definition, run on the Search Head that initiated the search &#8211; and nowhere else. They&#8217;re typically expected to run after all the streaming searches have happened, for any finalization\/manipulation of the returned data from all Search Peers running the search If you run non-streaming commands earlier than necessary in your SPL, you &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=60972\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Answer by warren for Is there a similar command to multisearch in Splunk for non-streaming searches?<\/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-60972","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\/60972","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=60972"}],"version-history":[{"count":1,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/60972\/revisions"}],"predecessor-version":[{"id":60973,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/60972\/revisions\/60973"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60972"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=60972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}