<?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 coalesce events with different values for status field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416031#M119755</link>
    <description>&lt;P&gt;Does this job only run once per day?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 17:16:18 GMT</pubDate>
    <dc:creator>grittonc</dc:creator>
    <dc:date>2019-04-15T17:16:18Z</dc:date>
    <item>
      <title>How to coalesce events with different values for status field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416030#M119754</link>
      <description>&lt;P&gt;I have this search that will display the following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=autosys source= jobName=
| where statusText="SUCCESS" OR statusText="RUNNING" OR statusText="FAILURE" OR statusText="JOBFAILURE"
| eval startTime=if(statusText=="RUNNING",timestamp,null)
| eval failureTime=if(statusText=="FAILURE",timestamp,null)
| eval successTime=if(statusText=="SUCCESS",timestamp,null)
| streamstats last(successTime) as prev_successtime,last(failureTime) as prev_failuretime,last(startTime) as prev_startTime current=f window=1
| table jobName startTime successTime failureTime
| rename startTime as "Start Time" successTime as "Success Time" failureTime as "Failure Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6905i3B6F044E496986EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like to have the most recent startTime match up with the latest SuccessTime or FailureTime in the same row. Is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 15:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416030#M119754</guid>
      <dc:creator>x213217</dc:creator>
      <dc:date>2019-04-15T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to coalesce events with different values for status field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416031#M119755</link>
      <description>&lt;P&gt;Does this job only run once per day?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 17:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416031#M119755</guid>
      <dc:creator>grittonc</dc:creator>
      <dc:date>2019-04-15T17:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to coalesce events with different values for status field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416032#M119756</link>
      <description>&lt;P&gt;this one in particular yes, but there will be ones that run on a variety of schedules&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 17:33:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416032#M119756</guid>
      <dc:creator>x213217</dc:creator>
      <dc:date>2019-04-15T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to coalesce events with different values for status field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416033#M119757</link>
      <description>&lt;P&gt;Just add this to the end:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| selfjoin jobName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(*) AS * BY jobName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2019 19:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-coalesce-events-with-different-values-for-status-field/m-p/416033#M119757</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-15T19:14:11Z</dc:date>
    </item>
  </channel>
</rss>

