<?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: Check if value is in sub search table result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334394#M99381</link>
    <description>&lt;P&gt;Hi  matansocher,&lt;/P&gt;

&lt;P&gt;You can try the query below:&lt;/P&gt;

&lt;P&gt;index=indexA groupID=&lt;EM&gt;groupA&lt;/EM&gt; regression_target=&lt;EM&gt;TargetA&lt;/EM&gt; job_type=run_job OR (status=PASS AND job_type=batch) &lt;BR /&gt;
      | dedup thumb_print &lt;BR /&gt;
  | table thumb_print&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:28:03 GMT</pubDate>
    <dc:creator>deepashri_123</dc:creator>
    <dc:date>2020-09-29T18:28:03Z</dc:date>
    <item>
      <title>Check if value is in sub search table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334392#M99379</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I need a way to check if a value is in a sub search table result.&lt;BR /&gt;
for example I use the code that doesent work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexA groupID=*groupA* regression_target=*TargetA* job_type=run_job 
| search 
    [ search index=indexA  groupID=*groupA* regression_target=*TargetA* status=PASS job_type=batch 
    | dedup thumb_print 
    | fields thumb_print] 
| table thumb_print
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying to filter the 'thumb_print' field by the subsearch result. in the subsearch there are more results then the whole search.&lt;BR /&gt;
by the data, it does not make any sense. am I doing something wrong?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334392#M99379</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-12-12T09:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Check if value is in sub search table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334393#M99380</link>
      <description>&lt;P&gt;hey @matansocher&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=indexA groupID=*groupA* regression_target=*TargetA* job_type=run_job 
 | search 
     [ search index=indexA  groupID=*groupA* regression_target=*TargetA* status=PASS job_type=batch 
     | dedup thumb_print 
     | return 100000 thumb_print] 
 | table thumb_print
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Use return command&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/Return"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/SearchReference/Return&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;100000 is the number of rows it can return.For a safer side put a high number. Also refer documentation for the same&lt;/P&gt;

&lt;P&gt;Let me know if it helps!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 10:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334393#M99380</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-12T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check if value is in sub search table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334394#M99381</link>
      <description>&lt;P&gt;Hi  matansocher,&lt;/P&gt;

&lt;P&gt;You can try the query below:&lt;/P&gt;

&lt;P&gt;index=indexA groupID=&lt;EM&gt;groupA&lt;/EM&gt; regression_target=&lt;EM&gt;TargetA&lt;/EM&gt; job_type=run_job OR (status=PASS AND job_type=batch) &lt;BR /&gt;
      | dedup thumb_print &lt;BR /&gt;
  | table thumb_print&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:28:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334394#M99381</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2020-09-29T18:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Check if value is in sub search table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334395#M99382</link>
      <description>&lt;P&gt;Sorry, I didnt know that a subsearch has a timeout of 60 seconds or a limit of 50000 results.&lt;BR /&gt;
Thanks anyway&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 12:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-if-value-is-in-sub-search-table-result/m-p/334395#M99382</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2017-12-13T12:48:57Z</dc:date>
    </item>
  </channel>
</rss>

