<?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: How to find concurrent run of processes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-run-of-processes/m-p/504527#M140893</link>
    <description>&lt;P&gt;You can use autoregress.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc &amp;lt;jobname&amp;gt; 
| stats earliest(_time) AS begin, latest(_time) AS end count by source 
| sort 0 begin
| autoregress end as prev_end p=1
| where begin&amp;lt;prev_end
| convert ctime(begin), ctime(end)
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;If that doesn't give you what you want, then consider using streamstats to calculate the window&lt;/P&gt;&lt;P&gt;I am not sure of the relevance of count in your scenario.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jun 2020 03:40:51 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2020-06-16T03:40:51Z</dc:date>
    <item>
      <title>How to find concurrent run of processes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-run-of-processes/m-p/503711#M140621</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to check if there are multiple instances of a job/process running .&lt;/P&gt;
&lt;P&gt;Ex: My Splunk search : &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=abc &amp;lt;jobname&amp;gt; |  stats earliest(_time) AS earliest_time, latest(_time) AS latest_time count by  source | convert ctime(earliest_time), ctime(latest_time) | sort - count&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Returns :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source   earliest_time       latest_time          count
logA     06/06/2020 15:24:09 06/06/2020 15:24:59      1
logB     06/06/2020 15:24:24 06/06/2020 15:25:12      2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the above since logB indicates job run before logA completion time, &amp;nbsp;it is an indication of the concurrent run of the process. I would like to generate a list of all such jobs if it is possible, any help is appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 19:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-run-of-processes/m-p/503711#M140621</guid>
      <dc:creator>ppatkar</dc:creator>
      <dc:date>2020-06-10T19:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to find concurrent run of processes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-run-of-processes/m-p/504527#M140893</link>
      <description>&lt;P&gt;You can use autoregress.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc &amp;lt;jobname&amp;gt; 
| stats earliest(_time) AS begin, latest(_time) AS end count by source 
| sort 0 begin
| autoregress end as prev_end p=1
| where begin&amp;lt;prev_end
| convert ctime(begin), ctime(end)
| sort - count&lt;/LI-CODE&gt;&lt;P&gt;If that doesn't give you what you want, then consider using streamstats to calculate the window&lt;/P&gt;&lt;P&gt;I am not sure of the relevance of count in your scenario.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 03:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-concurrent-run-of-processes/m-p/504527#M140893</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-06-16T03:40:51Z</dc:date>
    </item>
  </channel>
</rss>

