<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to get 2 nonstream Searches to run in parallel in the same SPL? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669171#M229520</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I agree that is correct and this was an example of 2 SPLs I had, but I had other issues else where the SPLs were different.&lt;/P&gt;&lt;P&gt;The UNION command was able to help me out in this case.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 11:24:46 GMT</pubDate>
    <dc:creator>robertlynch2020</dc:creator>
    <dc:date>2023-11-20T11:24:46Z</dc:date>
    <item>
      <title>Is there a way to get 2 nonstream Searches to run in parallel in the same SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669165#M229518</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi - Is there a way to get 2 nonstream Searches to run in parallel in the same SPL? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using "appendcols", but I think one is waiting for the other to finish. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't use multisearch as I don't have stream commands.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue is displaying the license used by Splunk and I want to run 2 SPL in parallel. However, it's very slow to run if I run 2 in sequence. Thanks in advance for any help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal 
    [ `set_local_host`] source=*license_usage.log* type="Usage" 
| eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) 
| eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) 
| eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) 
| bin _time span=1d 
| stats sum(b) as b by _time, pool, s, st, h, idx 
| search pool = "*" 
| search idx != "mlc_log_drop" 
| timechart span=1d sum(b) AS Live_Data fixedrange=false 
| fields - _timediff 
| foreach * 
    [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)] 
| appendcols 
    [ search index=_internal 
        [ `set_local_host`] source=*license_usage.log* type="Usage" 
    | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) 
    | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) 
    | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) 
    | bin _time span=1d 
    | stats sum(b) as b by _time, pool, s, st, h, idx 
    | search pool = "*" 
    | search idx = "mlc_log_drop" 
    | timechart span=1d sum(b) AS Log_Drop_Data fixedrange=false 
    | fields - _timediff 
    | foreach * 
        [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)]] &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 10:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669165#M229518</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2023-11-20T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get 2 nonstream Searches to run in parallel in the same SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669170#M229519</link>
      <description>&lt;P&gt;You're asking a wrong question.&lt;/P&gt;&lt;P&gt;Your both searches start with the same base search so either you should be able to do all in one go or your searches produce differently aggregated results so it doesn't make sense to combine them with appendcols.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669170#M229519</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-11-20T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get 2 nonstream Searches to run in parallel in the same SPL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669171#M229520</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I agree that is correct and this was an example of 2 SPLs I had, but I had other issues else where the SPLs were different.&lt;/P&gt;&lt;P&gt;The UNION command was able to help me out in this case.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-2-nonstream-Searches-to-run-in-parallel-in/m-p/669171#M229520</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2023-11-20T11:24:46Z</dc:date>
    </item>
  </channel>
</rss>

