<?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: Can you help me find matching fields from 2 out of 3 sources? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387531#M167478</link>
    <description>&lt;P&gt;you can use an inner join between source B/C and source A on field that needs to be matched.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 18:41:29 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-09-21T18:41:29Z</dc:date>
    <item>
      <title>Can you help me find matching fields from 2 out of 3 sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387530#M167477</link>
      <description>&lt;P&gt;Hello, I hope someone can help.&lt;/P&gt;

&lt;P&gt;I am attempting to do a subsearch that I am having difficulty with and hope someone here can assist.&lt;/P&gt;

&lt;P&gt;I would like any fields in SourceB or SourceC that match SourceA, to be returned&lt;/P&gt;

&lt;P&gt;I'd previously had the following syntax:&lt;BR /&gt;
&lt;STRONG&gt;SourceA | table field1 | search [ | search SourceB table field1 ] | search [ |search SourceC field1  | table src]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but now, I need it to be interpreded more like this:&lt;BR /&gt;
&lt;STRONG&gt;SourceA field1 (SourceB field1 or SourceC field1)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 03:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387530#M167477</guid>
      <dc:creator>Task1906</dc:creator>
      <dc:date>2018-09-21T03:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me find matching fields from 2 out of 3 sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387531#M167478</link>
      <description>&lt;P&gt;you can use an inner join between source B/C and source A on field that needs to be matched.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:41:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387531#M167478</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-09-21T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me find matching fields from 2 out of 3 sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387532#M167479</link>
      <description>&lt;P&gt;@Task1906&lt;/P&gt;

&lt;P&gt;If you want to filter events from SourceA on the basis of field1 value from SourceB and SourceC then try this.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SourceA  [ search SourceB | dedup field1 | fields  field1 ] OR [ search SourceC | dedup field1 | fields field1] | join field1 [ search SourceC | dedup field1 | fields field1 src ]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 14:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387532#M167479</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-09-23T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me find matching fields from 2 out of 3 sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387533#M167480</link>
      <description>&lt;P&gt;kamlesh_vaghela, thanks for the input, thanks to you I have it working.  But  SourceA is not needed where it is.  #2 SourceC is listed twice, and the 2nd time should be SourceA if it is removed from the beginning.&lt;BR /&gt;
The working command looks like this:&lt;BR /&gt;
&lt;STRONG&gt;[ search SourceB    | dedup field1&lt;BR /&gt;
    | fields field1]&lt;BR /&gt;
    OR&lt;BR /&gt;
    [ search SourceB | dedup field1 | fields field1]&lt;BR /&gt;
| join field1&lt;BR /&gt;
    [ search SourceA | dedup field1 | fields field1]&lt;BR /&gt;
| table field1 | dedup field1&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 04:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-find-matching-fields-from-2-out-of-3-sources/m-p/387533#M167480</guid>
      <dc:creator>Task1906</dc:creator>
      <dc:date>2018-09-24T04:29:49Z</dc:date>
    </item>
  </channel>
</rss>

