<?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: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477758#M134068</link>
    <description>&lt;P&gt;I am trying filter it with one job...its showing values in the legend&lt;/P&gt;

&lt;P&gt;&amp;lt;&amp;lt;&amp;gt;JobName&amp;gt;&amp;gt; : RUNNING&lt;BR /&gt;
&amp;lt;&amp;lt;&amp;gt;JobName&amp;gt;&amp;gt; : SUCCESS&lt;BR /&gt;
NULL &lt;/P&gt;

&lt;P&gt;And its not showing the continuous line for Running status as expected, Could you please correct this and also i dont need to woryy about success status now...i need data for only how many jobs are in starting state and how many are in running state at each 5 mins&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:24:45 GMT</pubDate>
    <dc:creator>pench2k19</dc:creator>
    <dc:date>2020-02-24T15:24:45Z</dc:date>
    <item>
      <title>need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477738#M134048</link>
      <description>&lt;P&gt;Hi Ninjas,&lt;/P&gt;

&lt;P&gt;I have following sample events in splunk.&lt;/P&gt;

&lt;P&gt;[02/18/2020 10:47:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX&lt;/P&gt;

&lt;P&gt;[02/18/2020 10:48:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX&lt;/P&gt;

&lt;P&gt;[02/18/2020 18:25:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX&lt;/P&gt;

&lt;P&gt;Now   i  need your help to calculate the total number of running/starting jobs for every  5 minutes , being the job status get hold by the splunk query and make it count in the timechart.&lt;/P&gt;

&lt;P&gt;For example, if i am running a query  for total number of running jobs between 10:48 and 18:25 , the job name showing in the sample events should be included in the count.&lt;/P&gt;

&lt;P&gt;Your help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:19:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477738#M134048</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477739#M134049</link>
      <description>&lt;P&gt;Hi pench2k19,&lt;BR /&gt;
I think that:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;CAUAJM_I_40245  is the transaction_ID, &lt;/LI&gt;
&lt;LI&gt;XXXX is the machine you're checking,&lt;/LI&gt;
&lt;LI&gt;you already extracted all the fields (Transaction_ID, STATUS, JOB, MACHINE).&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;if you didn't do it, this is the regex to extract fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\]\s+(?&amp;lt;Transaction_ID&amp;gt;.*)\s+STATUS:\s(?&amp;lt;STATUS&amp;gt;.*)\s+JOB:\s+(?&amp;lt;JOB&amp;gt;.*)\s+MACHINE:\s+(?&amp;lt;MACHINE&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/szlTxR/1" target="_blank"&gt;https://regex101.com/r/szlTxR/1&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;You have two solutions:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;transaction command,&lt;/LI&gt;
&lt;LI&gt;stats command;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The first is easier to use but slower than the other.&lt;/P&gt;

&lt;P&gt;Solution 1: Transaction command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index STATUS=STARTING OR STATUS=RUNNING  OR STATUS=SUCCESS 
| transaction Transaction_ID MACHINE
| timechart span=300s count BY MACHINE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Solution 2: stats command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index STATUS=STARTING OR STATUS=RUNNING  OR STATUS=SUCCESS 
| stats earlier(_time) AS _time BY Transaction_ID MACHINE
| timechart span=300s count BY MACHINE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(I think that you want the time of the transaction start, if instead you prefer the transaction end, you have to use &lt;CODE&gt;latest&lt;/CODE&gt; instead of earlier in stats command).&lt;/P&gt;

&lt;P&gt;I prefer the second.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477739#M134049</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T04:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477740#M134050</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;  that is not the transaction ID and i have extracted all the fields, the query i have defines is as follows&lt;/P&gt;

&lt;P&gt;index=infra_apps sourcetype=ca:atsys:edemon:txt&lt;BR /&gt;
| Transaction  Job Startswith=(Status=STARTING) endswith=(Status=RUNNING)&lt;BR /&gt;
| fields Job host Autosysjob_time Status&lt;BR /&gt;
| lookup datalakenodeslist.csv host OUTPUT cluster&lt;BR /&gt;
| mvexpand cluster&lt;BR /&gt;
| search Status=STARTING AND cluster= AND host="" AND Job=*&lt;BR /&gt;
| dedup Job Autosysjob_time host&lt;BR /&gt;
| timechart span=5m count(Job) by cluster&lt;/P&gt;

&lt;P&gt;This is running very due to the transaction command and it has to run against  more data. And i am not sur e if this query counting the sample job during the time i specified in my  problem statement.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477740#M134050</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477741#M134051</link>
      <description>&lt;P&gt;Hi pench2k19,&lt;BR /&gt;
transaction is a very slow command to use only when there isn't any other solution.&lt;BR /&gt;
as I showed, you should try to change the transaction command in stats command using the logic you  can see in my example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=infra_apps sourcetype=ca:atsys:edemon:txt (STATUS=STARTING OR STATUS=RUNNING  OR STATUS=SUCCESS)
| stats  earlier(_time) AS _time BY Job host
| timechart span=5m count(Job) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 11:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477741#M134051</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-23T11:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477742#M134052</link>
      <description>&lt;P&gt;@gcusello  my doubt  is would your query can hold the status of the job as expected and show  it in the count in timechart.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 11:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477742#M134052</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-23T11:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477743#M134053</link>
      <description>&lt;P&gt;Hi pench2k19,&lt;BR /&gt;
my search correlates events using as a key the Job (that I think is a Transaction_ID), in this way you have as many records as the number of transactions and for each of them you have the transaction_ID (Job), the host and the starting time, so you can count all the transactions every 5 minutes for each host.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477743#M134053</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-30T04:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477744#M134054</link>
      <description>&lt;P&gt;Use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command for this.  For each &lt;CODE&gt;start&lt;/CODE&gt; event, you create a &lt;CODE&gt;duration&lt;/CODE&gt; field from the &lt;CODE&gt;stop&lt;/CODE&gt; events, then you do &lt;CODE&gt;| eval duration = coalesce(duration, now() - _time)&lt;/CODE&gt; to cover those events that have not ended:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Concurrency"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Concurrency&lt;/A&gt;&lt;BR /&gt;
If this won't work, then try this:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/227393/how-to-use-the-concurrency-command-to-timechart-th.html"&gt;https://answers.splunk.com/answers/227393/how-to-use-the-concurrency-command-to-timechart-th.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 15:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477744#M134054</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-02-23T15:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477745#M134055</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="[02/18/2020 09:45:15.1318] CAUAJM_I_40244 EVENT: CHANGE_STATUS STATUS: STARTING JOB: CFDW_ADHOC_A_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX
[02/18/2020 10:47:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX
[02/18/2020 10:47:35.1318] CAUAJM_I_40244 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: CFDW_ADHOC_A_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX
[02/18/2020 10:48:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX
[02/18/2020 18:25:15.1318] CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: CFDW_ADHOC_C_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX
[02/18/2020 19:25:15.1318] CAUAJM_I_40244 EVENT: CHANGE_STATUS STATUS: SUCCESS JOB: CFDW_ADHOC_A_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX"
| makemv delim="
" _raw
| stats count by _raw
| rex "\[(?&amp;lt;timestamp&amp;gt;.*)\] (?&amp;lt;session&amp;gt;\S+) .*STATUS: (?&amp;lt;status&amp;gt;\S+) JOB: (?&amp;lt;job&amp;gt;\S+) MACHINE: (?&amp;lt;machine&amp;gt;\S+)"
| table timestamp session status job machine
| eval _time=strptime(timestamp,"%m/%d/%Y %T.%3Q")
| eval status=if(status="STARTING" OR status="RUNNING","RUNNING",status)
| eval job_status=job.":".status
| timechart cont=f span=5m count by job_status
| makecontinuous span=5m _time
| foreach *:RUNNING [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = nullif('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;','&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;:SUCCESS')]
| foreach *:SUCCESS [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = if(isnull('&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;:RUNNING') AND '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'=0 ,NULL, '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')]
| reverse
| filldown *:SUCCESS
| reverse
| foreach *:RUNNING [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = if(isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;') AND '&amp;lt;&amp;lt;MATCHSTR&amp;gt;&amp;gt;:SUCCESS' &amp;gt; 0 , 1, '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' )]
| filldown *:RUNNING
| foreach *:* [ eval &amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt; = max('&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;:RUNNING','&amp;lt;&amp;lt;MATCHSEG1&amp;gt;&amp;gt;:SUCCESS')]
| fields - *:*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is troublesome.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="column chart"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8441iEF563A903694D6DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="column chart" alt="column chart" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 06:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477745#M134055</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T06:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477746#M134056</link>
      <description>&lt;P&gt;@gcusello your query throwing an error "Error in 'stats' command: The argument 'earlier(_time)' is invalid."&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 07:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477746#M134056</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-24T07:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477747#M134057</link>
      <description>&lt;P&gt;Hi pench2k19,&lt;BR /&gt;
sorry!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest(_time) AS _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was sleeping!&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 07:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477747#M134057</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-24T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477748#M134058</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; Thanks for your efforts to present me an answer.&lt;/P&gt;

&lt;P&gt;I have modified the query as like yours &lt;/P&gt;

&lt;P&gt;index=infra_apps sourcetype=ca:atsys:edemon:txt &lt;BR /&gt;
| rename Status as status&lt;BR /&gt;
| table Autosysjob_time status Job hostname&lt;BR /&gt;
 | eval status=if(status="STARTING" OR status="RUNNING","RUNNING",status)&lt;BR /&gt;
 | eval job_status=Job.":".status&lt;BR /&gt;
 | timechart cont=f span=5m count by job_status&lt;BR /&gt;
 | makecontinuous span=5m _time&lt;BR /&gt;
 | foreach &lt;EM&gt;:RUNNING [ eval &amp;lt;&amp;gt; = nullif('&amp;lt;&amp;gt;','&amp;lt;&amp;gt;:SUCCESS')]&lt;BR /&gt;
 | foreach *:SUCCESS [ eval &amp;lt;&amp;gt; = if(isnull('&amp;lt;&amp;gt;:RUNNING') AND '&amp;lt;&amp;gt;'=0 ,NULL, '&amp;lt;&amp;gt;')]&lt;BR /&gt;
 | reverse&lt;BR /&gt;
 | filldown *:SUCCESS&lt;BR /&gt;
 | reverse&lt;BR /&gt;
 | foreach *:RUNNING [ eval &amp;lt;&amp;gt; = if(isnull('&amp;lt;&amp;gt;') AND '&amp;lt;&amp;gt;:SUCCESS' &amp;gt; 0 , 1, '&amp;lt;&amp;gt;' )]&lt;BR /&gt;
 | filldown *:RUNNING&lt;BR /&gt;
 | foreach *:&lt;/EM&gt; [ eval &amp;lt;&amp;gt; = max('&amp;lt;&amp;gt;:RUNNING','&amp;lt;&amp;gt;:SUCCESS')]&lt;BR /&gt;
 | fields - &lt;EM&gt;:&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately its not giving any result. i would like try this concurrency command as sugessested by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;  i am not able to define it to my situation correctly, can you please try for me once&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477748#M134058</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477749#M134059</link>
      <description>&lt;P&gt;&lt;CODE&gt;| table Autosysjob_time status Job hostname&lt;/CODE&gt;&lt;BR /&gt;
⇨&lt;BR /&gt;
&lt;CODE&gt;| table_time status Job hostname Autosysjob&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;timechart&lt;/CODE&gt; use first field epochtime.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[02/18/2020 09:45:15.1318] CAUAJM_I_40244 EVENT: CHANGE_STATUS STATUS: STARTING JOB: CFDW_ADHOC_A_AIMSAS_D_INV_LNITEM_BILLING_CHGS_M MACHINE: XXXX&lt;/CODE&gt; is&lt;BR /&gt;
&lt;CODE&gt;[(?P(_time)] hostname EVENT: CHANGE_STATUS STATUS:(?P(&amp;lt;status&amp;gt;) JOB: (?P&amp;lt;job&amp;gt;) MACHINE:(?P&amp;lt;foo&amp;gt;)&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Huh?, Where is Autosysjob?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 08:32:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477749#M134059</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477750#M134060</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; &lt;/P&gt;

&lt;P&gt;[02/18/2020 09:45:15.1318] ---Autosys Job Time&lt;BR /&gt;
CFDW_ADHOC_A_AIMSAS_D_INV_LNITEM_BILLING_CHGS ----Autosys Job Name&lt;/P&gt;

&lt;P&gt;And I have updated the query and tested for a single job which starts at 12:35 am daily and continuously run for 20 hours , i see the dot at 12:35 am for today but not anything after that, i am expecting a dot at every for minutes in running jobs count.&lt;/P&gt;

&lt;P&gt;I see two lines in the graph when i have not filtered with any job name , one is NULL and another one is OTHER, Can you please explain what it is....And the query looks messy , can you please simplify it if you can so that i will have to few more details to this query via lookup file like cluster details.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477750#M134060</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-09-30T04:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477751#M134061</link>
      <description>&lt;P&gt;I see,&lt;BR /&gt;
&lt;CODE&gt;| rex "\[(?&amp;lt;timestamp&amp;gt;.*)\] (?&amp;lt;session&amp;gt;\S+) .*STATUS: (?&amp;lt;status&amp;gt;\S+) JOB: (?&amp;lt;job&amp;gt;\S+) MACHINE: (?&amp;lt;machine&amp;gt;\S+)"&lt;/CODE&gt; &lt;BR /&gt;
&lt;EM&gt;timestamp&lt;/EM&gt; is &lt;EM&gt;Autosysjob&lt;/EM&gt;.&lt;/P&gt;

&lt;P&gt;no.12&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | table timestamp session status job machine
 ⇨
 | table Autosysjob session status job machine
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I think this will work.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 09:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477751#M134061</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T09:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477752#M134062</link>
      <description>&lt;P&gt;I am unbale to share the screenshot . I tried to filter this with single job.&lt;/P&gt;

&lt;P&gt;But The Job expected to be in running state from 12:30 am to 11:30pm , when i see the graph it doesnt look like so&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 10:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477752#M134062</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-24T10:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477753#M134063</link>
      <description>&lt;P&gt;@woodcock &lt;BR /&gt;
i am struggling to apply this..Can you please spend sometime and share me the concrete query for my scenerio, that will be great help. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 10:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477753#M134063</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-24T10:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477754#M134064</link>
      <description>&lt;P&gt;&lt;CODE&gt;your search results are exactly as you searched&lt;/CODE&gt;&lt;BR /&gt;
I created it  by  your sample log.&lt;BR /&gt;
If you can't do it, your provide log is wrong OR your query is wrong.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 11:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477754#M134064</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-24T11:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477755#M134065</link>
      <description>&lt;P&gt;@gcusello  hope you got my question correct.&lt;/P&gt;

&lt;P&gt;I would like to see the number of jobs running or starting at each 5 minutes.&lt;/P&gt;

&lt;P&gt;For example as shown in th sample events, if i job a running from 10:48 to 18:25 , I would like to see that job name in the number of running jobs for every 5 minutes event though i have a single event with that status=RUNNING in splunk.&lt;/P&gt;

&lt;P&gt;I am sorry to say your query not serving the purpose&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 12:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477755#M134065</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-24T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477756#M134066</link>
      <description>&lt;P&gt;Hi pench2k19,&lt;BR /&gt;
are you sure?&lt;BR /&gt;
if you use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=infra_apps sourcetype=ca:atsys:edemon:txt (STATUS=STARTING OR STATUS=RUNNING)
| bin span=5m _time
| stats  count BY Job host _time
| timechart span=5m dc(Job) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you have the number of jobs per host every 5 minutes with status=STARTING only or status=RUNNING only or status=both STARTING and RUNNING.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 13:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477756#M134066</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-24T13:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: need help to hold the status of a job from an event and make it count till next status change event and show it in the timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477757#M134067</link>
      <description>&lt;P&gt;@gcusello  for now if i want to see number of running jobs at each 5 minutes , i have filtered your query&lt;/P&gt;

&lt;P&gt;index=infra_apps sourcetype=ca:atsys:edemon:txt  STATUS=RUNNING&lt;BR /&gt;
 | bin span=5m _time&lt;BR /&gt;
 | stats  count BY Job host _time&lt;BR /&gt;
 | timechart span=5m dc(Job) by host&lt;/P&gt;

&lt;P&gt;it is still not working as expected, I would like to hold the running status and show it in the running job count till it changes its status&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 13:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-to-hold-the-status-of-a-job-from-an-event-and-make-it/m-p/477757#M134067</guid>
      <dc:creator>pench2k19</dc:creator>
      <dc:date>2020-02-24T13:48:40Z</dc:date>
    </item>
  </channel>
</rss>

