<?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: Compare field value from different sourcetypes to list the value of the third field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-field-value-from-different-sourcetypes-to-list-the-value/m-p/475437#M192560</link>
    <description>&lt;P&gt;There probably are a few ways to do that.  Here's one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 OR sourcetype=sourcetype2 | stats values(Field2) by Field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Jan 2020 13:45:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-01-06T13:45:08Z</dc:date>
    <item>
      <title>Compare field value from different sourcetypes to list the value of the third field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-field-value-from-different-sourcetypes-to-list-the-value/m-p/475436#M192559</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
i have 2 files indexed as 2 different source types.&lt;BR /&gt;
In Sourcetype1 i created:&lt;BR /&gt;
1. Field1 presents the  value of a file let's say &lt;STRONG&gt;example.txt&lt;/STRONG&gt;&lt;BR /&gt;
2. Field2 presents the value of the result let's say &lt;STRONG&gt;[OK]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;In Sourcetype2 i created:&lt;BR /&gt;
Field1 presents the value of a file let's say &lt;STRONG&gt;example.txt&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I would like to create a search that&lt;BR /&gt;
&lt;STRONG&gt;If Field1 value from sourcetype1 = Field1 value from sourcetype2 list Field2 value from sourcetype1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;My final goal is to create a table that lists the event details (time, user, files, results) the last column will be the result that is a little bit more trickier to achieve.&lt;/P&gt;

&lt;P&gt;Thanks A Lot Guys!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 12:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-field-value-from-different-sourcetypes-to-list-the-value/m-p/475436#M192559</guid>
      <dc:creator>mardix86</dc:creator>
      <dc:date>2020-01-06T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare field value from different sourcetypes to list the value of the third field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-field-value-from-different-sourcetypes-to-list-the-value/m-p/475437#M192560</link>
      <description>&lt;P&gt;There probably are a few ways to do that.  Here's one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sourcetype1 OR sourcetype=sourcetype2 | stats values(Field2) by Field1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jan 2020 13:45:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-field-value-from-different-sourcetypes-to-list-the-value/m-p/475437#M192560</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-06T13:45:08Z</dc:date>
    </item>
  </channel>
</rss>

