<?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 problem joining big data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73288#M18326</link>
    <description>&lt;P&gt;I've 2 big searches that I need to join. Currently I use this paradigm for joining:&lt;/P&gt;

&lt;P&gt;search1 OR search2 | stats by joinField | where filterCondition&lt;/P&gt;

&lt;P&gt;It is working fine for normal size searches. The problem begins when I try to join really big data (search1 is 300K results while search2 is 1500K results). I'm start seeing that the results are not complete, and some data that was supposed to get joined is not.&lt;/P&gt;

&lt;P&gt;What am I'm doing wrong?&lt;BR /&gt;
What could be done in splunk to achieve my requirement?&lt;BR /&gt;
(Initially I used the join sub search method, but limited to 50K results it quickly went out of the question)&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Dec 2012 15:32:04 GMT</pubDate>
    <dc:creator>dadi</dc:creator>
    <dc:date>2012-12-26T15:32:04Z</dc:date>
    <item>
      <title>problem joining big data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73288#M18326</link>
      <description>&lt;P&gt;I've 2 big searches that I need to join. Currently I use this paradigm for joining:&lt;/P&gt;

&lt;P&gt;search1 OR search2 | stats by joinField | where filterCondition&lt;/P&gt;

&lt;P&gt;It is working fine for normal size searches. The problem begins when I try to join really big data (search1 is 300K results while search2 is 1500K results). I'm start seeing that the results are not complete, and some data that was supposed to get joined is not.&lt;/P&gt;

&lt;P&gt;What am I'm doing wrong?&lt;BR /&gt;
What could be done in splunk to achieve my requirement?&lt;BR /&gt;
(Initially I used the join sub search method, but limited to 50K results it quickly went out of the question)&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2012 15:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73288#M18326</guid>
      <dc:creator>dadi</dc:creator>
      <dc:date>2012-12-26T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem joining big data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73289#M18327</link>
      <description>&lt;P&gt;Take a look at the &lt;STRONG&gt;limits.conf&lt;/STRONG&gt; file - my guess is that you are exceeding at least one of Splunk's limits. For example, I believe that the default limit for the size of search results is 100MB of memory (that's not the count of events, but the total size). You may exceeding that even if you aren't exceeding the maximum event count.&lt;/P&gt;

&lt;P&gt;However, expanding the limits may be not be the best solution, even if it is possible. The limits are set to optimize Splunk's behavior...&lt;/P&gt;

&lt;P&gt;Consider using summary indexing; this will allow you to accumulate intermediate results over shorter time periods, and then compute the final results as needed. For example, run this search every 5 minutes, saving your results in an index named &lt;CODE&gt;mysummary&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search1 OR search2 | sistats by joinField 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assume that this search is named &lt;CODE&gt;createSummary&lt;/CODE&gt;. Note that it uses the &lt;CODE&gt;sistats&lt;/CODE&gt; command. After you save the search, you can edit it in the Splunk Manager to set the summary index and the schedule. Once createSummary has been run, you can do the final calculations with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysummary search_name=createSummary | stats by joinField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Of course, my example is pseudo-code, just like yours, but the idea is there. There is also a backfill script that will initialize your summary index over past time periods.&lt;/P&gt;

&lt;P&gt;You can look &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Configuresummaryindexes"&gt;here&lt;/A&gt; for more info about summary indexing.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2012 06:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73289#M18327</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-12-27T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem joining big data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73290#M18328</link>
      <description>&lt;P&gt;Thanks for the answer. I'm already using summery indexing. My problem is the data that should be joined is big. Theoretically, I could split it according to different values of the join field, but it seems to be not the ideal solution.&lt;BR /&gt;
I'm now trying to work with lookup tables, migrating the results of search 2 to reside in a lookup csv file and then my query looks like:&lt;BR /&gt;
search1 | lookup mycsv joinField &lt;/P&gt;

&lt;P&gt;Does this kind of search have scale limits? assuming the csv file is huge.&lt;BR /&gt;
Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2012 07:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73290#M18328</guid>
      <dc:creator>dadi</dc:creator>
      <dc:date>2012-12-27T07:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem joining big data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73291#M18329</link>
      <description>&lt;P&gt;What appear to be solve it for me was to transfer one of the searches to a lookup file (in a pre processing saved search, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/SearchReference/Lookup"&gt;lookup documentation&lt;/A&gt;). so now instead of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search1 OR search2 | stats by joinField | where filterCondition&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it is now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search1 | lookup mycsv joinField&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Dec 2012 14:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-joining-big-data/m-p/73291#M18329</guid>
      <dc:creator>dadi</dc:creator>
      <dc:date>2012-12-27T14:17:53Z</dc:date>
    </item>
  </channel>
</rss>

