<?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 Nested Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Nested-Search/m-p/313122#M93745</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have two tables:&lt;BR /&gt;
table1:&lt;BR /&gt;
share, cost,   time&lt;BR /&gt;
A       ,  10  , 2017-02-20&lt;BR /&gt;
A       ,  14  , 2017-02-21&lt;BR /&gt;
B      ,  13  , 2017-02-21&lt;BR /&gt;
C      ,  4    , 2017-02-24&lt;BR /&gt;
C      ,  11  , 2017-02-24&lt;/P&gt;

&lt;P&gt;table2:&lt;BR /&gt;
share, cost,   time,             name&lt;BR /&gt;&lt;BR /&gt;
A       ,  11   , 2017-02-20 ,   Moshe&lt;BR /&gt;&lt;BR /&gt;
A       ,  15   , 2017-02-21,    Dani&lt;BR /&gt;
B      ,  13  , 2017-02-21  ,    Rafael&lt;BR /&gt;
B      ,  4    , 2017-02-24  ,    John&lt;BR /&gt;
C      ,  11  , 2017-02-24  ,  George&lt;BR /&gt;
A       ,  22  , 2017-02-20 ,  Yossi&lt;BR /&gt;
A       ,  9   , 2017-02-21 ,   Yossi&lt;/P&gt;

&lt;P&gt;I want to look at A rows from table 1 , and choose (from table 2) the A rows with cost in range +-5 of the original cost (we took from table 1) .&lt;/P&gt;

&lt;P&gt;I tried to use eval but i think i miss something here &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 15:56:31 GMT</pubDate>
    <dc:creator>hankmath</dc:creator>
    <dc:date>2017-02-21T15:56:31Z</dc:date>
    <item>
      <title>Nested Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Nested-Search/m-p/313122#M93745</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have two tables:&lt;BR /&gt;
table1:&lt;BR /&gt;
share, cost,   time&lt;BR /&gt;
A       ,  10  , 2017-02-20&lt;BR /&gt;
A       ,  14  , 2017-02-21&lt;BR /&gt;
B      ,  13  , 2017-02-21&lt;BR /&gt;
C      ,  4    , 2017-02-24&lt;BR /&gt;
C      ,  11  , 2017-02-24&lt;/P&gt;

&lt;P&gt;table2:&lt;BR /&gt;
share, cost,   time,             name&lt;BR /&gt;&lt;BR /&gt;
A       ,  11   , 2017-02-20 ,   Moshe&lt;BR /&gt;&lt;BR /&gt;
A       ,  15   , 2017-02-21,    Dani&lt;BR /&gt;
B      ,  13  , 2017-02-21  ,    Rafael&lt;BR /&gt;
B      ,  4    , 2017-02-24  ,    John&lt;BR /&gt;
C      ,  11  , 2017-02-24  ,  George&lt;BR /&gt;
A       ,  22  , 2017-02-20 ,  Yossi&lt;BR /&gt;
A       ,  9   , 2017-02-21 ,   Yossi&lt;/P&gt;

&lt;P&gt;I want to look at A rows from table 1 , and choose (from table 2) the A rows with cost in range +-5 of the original cost (we took from table 1) .&lt;/P&gt;

&lt;P&gt;I tried to use eval but i think i miss something here &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Nested-Search/m-p/313122#M93745</guid>
      <dc:creator>hankmath</dc:creator>
      <dc:date>2017-02-21T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Nested-Search/m-p/313123#M93746</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search for table 2 with fields share, cost, time, name 
| appeend [search your search for table 1 with fields share, cost, time | rename cost as cost_threshold | eval from="table1"]
| eventstats values(cost_threshold) as cost_threshold by share time | where NOT (from="table1") AND abs(cost-cost_threshold)=5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Nested-Search/m-p/313123#M93746</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-21T16:29:56Z</dc:date>
    </item>
  </channel>
</rss>

