<?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 do i create this kind of relationship of two indexes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313366#M93808</link>
    <description>&lt;P&gt;Hello Javier.&lt;/P&gt;

&lt;P&gt;What you understood is exactly what i tried to Say. &lt;BR /&gt;
Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 00:12:23 GMT</pubDate>
    <dc:creator>DiegoAlba</dc:creator>
    <dc:date>2017-04-07T00:12:23Z</dc:date>
    <item>
      <title>How do i create this kind of relationship of two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313364#M93806</link>
      <description>&lt;P&gt;For example&lt;BR /&gt;
ID field1.      ID  field2&lt;BR /&gt;
1   A.              1   X&lt;BR /&gt;
2   B.              2.  Y&lt;BR /&gt;
1.  E.              1.   Z&lt;BR /&gt;
AND I WHAT TO GET THIS&lt;BR /&gt;
ID field1.  field2&lt;BR /&gt;
1.  A.         X&lt;BR /&gt;
1.  A.         Z&lt;BR /&gt;
2.  B.         Y&lt;BR /&gt;
1.  E.         X&lt;BR /&gt;
1.  E.         Z&lt;BR /&gt;
Can someone of you help me please&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 00:25:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313364#M93806</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2017-04-06T00:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i create this kind of relationship of two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313365#M93807</link>
      <description>&lt;P&gt;Sorry I'm a bit confused about your example.&lt;/P&gt;

&lt;P&gt;So assuming you have two tables:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Table1 (represented by mycsv.csv in the sample below) like this:&lt;/P&gt;

&lt;P&gt;ID,field1&lt;BR /&gt;
1,A&lt;BR /&gt;
2,B&lt;BR /&gt;
1,E&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Table 2 (represented by mycsv2.csv in the sample below) like this:&lt;/P&gt;

&lt;P&gt;ID,field2&lt;BR /&gt;
1,X&lt;BR /&gt;
2,Y&lt;BR /&gt;
1,Z&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputcsv mycsv.csv 
| join max=0 ID [ | inputcsv mycsv2.csv ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Will provide the following output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ID  field1  field2
1   A   X
1   A   Z
2   B   Y
1   E   X
1   E   Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As per the attached picture.&lt;/P&gt;

&lt;P&gt;Is that what you are looking for?&lt;BR /&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/2726i19D41732442E1936/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 10:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313365#M93807</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-04-06T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do i create this kind of relationship of two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313366#M93808</link>
      <description>&lt;P&gt;Hello Javier.&lt;/P&gt;

&lt;P&gt;What you understood is exactly what i tried to Say. &lt;BR /&gt;
Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 00:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313366#M93808</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2017-04-07T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do i create this kind of relationship of two indexes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313367#M93809</link>
      <description>&lt;P&gt;Hi @DiegoAlba,&lt;/P&gt;

&lt;P&gt;If you are happy with the response please don't forget to mark this as answered so that others can benefit from it in future.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-create-this-kind-of-relationship-of-two-indexes/m-p/313367#M93809</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-04-07T09:24:04Z</dc:date>
    </item>
  </channel>
</rss>

