<?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: subsearch not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501197#M139575</link>
    <description>&lt;P&gt;Can you please run it against a time period that is known to be good? You mention a few weeks, so try a little before that when you know you had positive alerts. Maybe the composition of your logs has changed.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 15:49:00 GMT</pubDate>
    <dc:creator>jpolvino</dc:creator>
    <dc:date>2019-12-04T15:49:00Z</dc:date>
    <item>
      <title>subsearch not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501195#M139573</link>
      <description>&lt;P&gt;I have an alert using a subsearch that was working a few weeks ago.  Now all of a sudden i cannot get any subsearchs to work.  A very simple search i performed is:&lt;/P&gt;

&lt;P&gt;index=IndexName sourcetype=WindowsEventLogs  [search sourcetype="VPNLogs" CN=Ben_zimmermann &lt;BR /&gt;
| table CN]&lt;/P&gt;

&lt;P&gt;If i perform each search individually, i get results but when i put them together, i do not get any results.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501195#M139573</guid>
      <dc:creator>benzmmrmnn86</dc:creator>
      <dc:date>2019-12-04T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501196#M139574</link>
      <description>&lt;P&gt;Off the top of my head, could you try specifying the index in the subsearch?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501196#M139574</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-04T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501197#M139575</link>
      <description>&lt;P&gt;Can you please run it against a time period that is known to be good? You mention a few weeks, so try a little before that when you know you had positive alerts. Maybe the composition of your logs has changed.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501197#M139575</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2019-12-04T15:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501198#M139576</link>
      <description>&lt;P&gt;HI @benzmmrmnn86,&lt;BR /&gt;
when you run the subsearch by itself, what's the number of results?&lt;BR /&gt;
remember that there's the limit of 50,000 results in subsearches, so if you have more results. maybe the ones you need are the exceeding part of results.&lt;BR /&gt;
You could modify subsearch as the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=IndexName sourcetype=WindowsEventLogs [search index=my_index sourcetype="VPNLogs" CN=Ben_zimmermann
| dedup CN | table CN]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I agree with @oscar84x: it's a good practice to use always the index in every search and subsearch.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-working/m-p/501198#M139576</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-12-04T15:49:14Z</dc:date>
    </item>
  </channel>
</rss>

