<?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 display a log based off of fields from multiple logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367459#M66792</link>
    <description>&lt;P&gt;This is perfect. I wasn't familiar with the match command and was trying to do an overly complicated join/append.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 20:41:32 GMT</pubDate>
    <dc:creator>Toshbar</dc:creator>
    <dc:date>2017-08-11T20:41:32Z</dc:date>
    <item>
      <title>How to display a log based off of fields from multiple logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367456#M66789</link>
      <description>&lt;P&gt;I'm not 100% sure how to title this question so please let me know if you have a suggestion on how to re-title it and i'll edit it.&lt;/P&gt;

&lt;P&gt;I have tens of logs showing daily for each JOB&lt;BR /&gt;
Here is an example of two logs for one of them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; DATETIME:   2017-08-11 13:00:13.85 -0700   
 JOBNAME:    CIMR801D   
 MSGTXT:     CODE=ENDED - TIME=13.00.13 

 DATETIME:   2017-08-10 20:44:19.21 -0700   
 JOBNAME:    CIMR801D   
 MSGTXT:    CODE=JOB FAILED=S000 U1536 REASON=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I only want to show jobs that have ended but haven't had any fails. So i'm trying to only show JOBNAMES that have a log containing the text ENDED TIME within the MSGTXT field but not FAILED within MSGTXT of another log within the same day.&lt;/P&gt;

&lt;P&gt;Any ideas? &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367456#M66789</guid>
      <dc:creator>Toshbar</dc:creator>
      <dc:date>2017-08-11T20:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a log based off of fields from multiple logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367457#M66790</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(MSGTXT) AS MSGTXTs BY JOBNAME
| where match(MSGTXTs, "CODE=ENDED") AND NOT match(MSGTXTs, "CODE=JOB FAILED")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you need to keep the raw events, then change &lt;CODE&gt;stats&lt;/CODE&gt; to &lt;CODE&gt;eventstats&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:27:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367457#M66790</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-11T20:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a log based off of fields from multiple logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367458#M66791</link>
      <description>&lt;P&gt;Assuming the JOBNAME and MSGTXT fields are already indexed, this query should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo MSGTXT="*ENDED*" | table JOBNAME
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367458#M66791</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-08-11T20:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a log based off of fields from multiple logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367459#M66792</link>
      <description>&lt;P&gt;This is perfect. I wasn't familiar with the match command and was trying to do an overly complicated join/append.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-display-a-log-based-off-of-fields-from-multiple-logs/m-p/367459#M66792</guid>
      <dc:creator>Toshbar</dc:creator>
      <dc:date>2017-08-11T20:41:32Z</dc:date>
    </item>
  </channel>
</rss>

