<?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 compare different fields having the same value in different events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339393#M100630</link>
    <description>&lt;P&gt;It worked.&lt;/P&gt;

&lt;P&gt;Many thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 05:30:37 GMT</pubDate>
    <dc:creator>pratibha2018</dc:creator>
    <dc:date>2018-03-13T05:30:37Z</dc:date>
    <item>
      <title>How to compare different fields having the same value in different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339391#M100628</link>
      <description>&lt;P&gt;How to compare different fields having the same value and though in different events?&lt;BR /&gt;
For example : index1,  source1, sourcetype1 has "n" events  and index2, source2, sourcetype2 has "m" events .&lt;BR /&gt;
Now, some fields from sourcetype1(say field1)  have the same values as that of some fields of sourcetype2(sayfield2).&lt;BR /&gt;
I want for field1=field2 list all the other fields of sourcetype2,sourcetype1. The thing is that I have to compare it in different events.&lt;BR /&gt;
Not a single event is having both field1 and field2.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 12:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339391#M100628</guid>
      <dc:creator>pratibha2018</dc:creator>
      <dc:date>2018-03-12T12:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different fields having the same value in different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339392#M100629</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this and let me know please&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index2 source2 sourcetype2
 [ search index1 source1 sourcetype1 | dedup field1 | return 1000 field2=field1 ]
|  fields - field2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339392#M100629</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-12T13:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare different fields having the same value in different events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339393#M100630</link>
      <description>&lt;P&gt;It worked.&lt;/P&gt;

&lt;P&gt;Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 05:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-different-fields-having-the-same-value-in/m-p/339393#M100630</guid>
      <dc:creator>pratibha2018</dc:creator>
      <dc:date>2018-03-13T05:30:37Z</dc:date>
    </item>
  </channel>
</rss>

