<?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 Subsearch with different index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-index/m-p/548916#M155728</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I am using 2 indexes (index1 and index2). I want to pull a field from index1 (URL and rename it to url_1), and the in a subsearch I want to pull more fields from index 2. At the end I want a table with the field from index1(url_1) and the fields from index2.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 10:08:24 GMT</pubDate>
    <dc:creator>Godspeed_74</dc:creator>
    <dc:date>2021-04-22T10:08:24Z</dc:date>
    <item>
      <title>Subsearch with different index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-index/m-p/548916#M155728</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am using 2 indexes (index1 and index2). I want to pull a field from index1 (URL and rename it to url_1), and the in a subsearch I want to pull more fields from index 2. At the end I want a table with the field from index1(url_1) and the fields from index2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 10:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-index/m-p/548916#M155728</guid>
      <dc:creator>Godspeed_74</dc:creator>
      <dc:date>2021-04-22T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch with different index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-index/m-p/548918#M155729</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233685"&gt;@Godspeed_74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index1 OR index=index2
| eval url_1=if(index=index1,url, "")
| table url_1 (and all the list from the index2)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Apr 2021 10:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-index/m-p/548918#M155729</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-04-22T10:21:37Z</dc:date>
    </item>
  </channel>
</rss>

