<?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 how to avoid join in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512308#M143686</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have scenario where index and sourcetype are same and i am tryng below conditions.&lt;/P&gt;&lt;P&gt;chart dc(run) OVER app by event---- this will give me dc of run for each app for each event&lt;/P&gt;&lt;P&gt;stats dc(run) as run by app-- this will give me dc of run by app........&lt;/P&gt;&lt;P&gt;i used join to get this done ike below, but this is taking lot time to run query,&lt;/P&gt;&lt;P&gt;base search...&lt;BR /&gt;|chart dc(run) OVER app by event&lt;BR /&gt;| join app&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [search source =mysource | stats dc(run) as run by app ]&amp;nbsp;&lt;BR /&gt;|eval new_val = run - event1- event2&amp;nbsp;&lt;BR /&gt;| fields app event1 event2 new_val new run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 08:57:51 GMT</pubDate>
    <dc:creator>vikashperiwal</dc:creator>
    <dc:date>2020-08-04T08:57:51Z</dc:date>
    <item>
      <title>how to avoid join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512308#M143686</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have scenario where index and sourcetype are same and i am tryng below conditions.&lt;/P&gt;&lt;P&gt;chart dc(run) OVER app by event---- this will give me dc of run for each app for each event&lt;/P&gt;&lt;P&gt;stats dc(run) as run by app-- this will give me dc of run by app........&lt;/P&gt;&lt;P&gt;i used join to get this done ike below, but this is taking lot time to run query,&lt;/P&gt;&lt;P&gt;base search...&lt;BR /&gt;|chart dc(run) OVER app by event&lt;BR /&gt;| join app&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [search source =mysource | stats dc(run) as run by app ]&amp;nbsp;&lt;BR /&gt;|eval new_val = run - event1- event2&amp;nbsp;&lt;BR /&gt;| fields app event1 event2 new_val new run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 08:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512308#M143686</guid>
      <dc:creator>vikashperiwal</dc:creator>
      <dc:date>2020-08-04T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512309#M143687</link>
      <description>&lt;P&gt;You can use append command to avoid join.&lt;/P&gt;&lt;P&gt;like the way you did join based on field app.&lt;/P&gt;&lt;P&gt;you can achieve same from append command.&lt;/P&gt;&lt;P&gt;example search is as below:&lt;/P&gt;&lt;P&gt;| search1 | stats count as count1 by app run&lt;/P&gt;&lt;P&gt;| append [search2 | stats count by app run1]&lt;BR /&gt;| stats values(*) as * by app&lt;/P&gt;&lt;P&gt;| do what ever you want&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 09:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512309#M143687</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T09:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512318#M143691</link>
      <description>&lt;P&gt;The below sol would not filter by event and 2 nd app/join both are taking lot of time to run, do we see any alternative of this,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 09:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512318#M143691</guid>
      <dc:creator>vikashperiwal</dc:creator>
      <dc:date>2020-08-04T09:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to avoid join</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512323#M143692</link>
      <description>&lt;P&gt;do not append all your raw events. you should append processed results from second search. this way you can improve the performance of search.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 09:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-avoid-join/m-p/512323#M143692</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T09:47:18Z</dc:date>
    </item>
  </channel>
</rss>

