<?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: Recurring JOIN in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562151#M195503</link>
    <description>&lt;P&gt;Somewhat faster, but shows only the fields of the first sourcetype, never the second, using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx1 source=source1 sourcetype=st1 OR sourcetype=st2 | stats count values(common_field) as common_field by field1, field2, field3, etc...&lt;/LI-CODE&gt;&lt;P&gt;In this example, field1 is in st2, common_field in both, and all other fields in st1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 00:58:22 GMT</pubDate>
    <dc:creator>tlmayes</dc:creator>
    <dc:date>2021-08-05T00:58:22Z</dc:date>
    <item>
      <title>Recurring JOIN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562132#M195496</link>
      <description>&lt;P&gt;I have an index1/source1/sourcetype1 of events that is several "million" records each day.&amp;nbsp;&lt;BR /&gt;I have a second index1/source1/sourcetype2 that is several hundred records each day&lt;/P&gt;&lt;P&gt;Several times a day I must execute a JOIN command to associate (1) sourcetype1 field with (1) sourcetype2 field, with each run of the query covering the last 2 weeks.&amp;nbsp; The associations between query1 and query2 change or are updated with each run.&amp;nbsp; The output is not static (changes with each run), which means the output of the last query is no longer valid since the data in query2 changes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a better way to address this?&amp;nbsp; KB or Lookup won't work since the output of query2 changes the outcome, and saving the output of query1 is not practical (millions of events)&lt;BR /&gt;&lt;BR /&gt;index=index1 sourcetype=sourcetype1 field=common&lt;BR /&gt;| join common&lt;BR /&gt;[ search index=index1 sourcetype=sourcetype2 field=common field=changing]&lt;BR /&gt;| table common, changing, field3, field4, field5, ......&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 21:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562132#M195496</guid>
      <dc:creator>tlmayes</dc:creator>
      <dc:date>2021-08-04T21:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring JOIN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562147#M195501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/84018"&gt;@tlmayes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use stats,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx1 source=source1 sourcetype=st1 OR sourcetype=st2 | stats aggregate_functions by your_common_field_names.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 23:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562147#M195501</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-08-04T23:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Recurring JOIN</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562151#M195503</link>
      <description>&lt;P&gt;Somewhat faster, but shows only the fields of the first sourcetype, never the second, using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx1 source=source1 sourcetype=st1 OR sourcetype=st2 | stats count values(common_field) as common_field by field1, field2, field3, etc...&lt;/LI-CODE&gt;&lt;P&gt;In this example, field1 is in st2, common_field in both, and all other fields in st1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 00:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Recurring-JOIN/m-p/562151#M195503</guid>
      <dc:creator>tlmayes</dc:creator>
      <dc:date>2021-08-05T00:58:22Z</dc:date>
    </item>
  </channel>
</rss>

