<?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 Subsearch does not work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25798#M4899</link>
    <description>&lt;P&gt;What is wrong with following search:&lt;/P&gt;

&lt;P&gt;sourcetype="security" ip=[search sourcetype=access_combined status=401 clientip=* | transaction fields clientip | where eventcount&amp;gt;2 | stats count, values(clientip) by status]&lt;/P&gt;

&lt;P&gt;What I get is following message:&lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '=' has an invalid term on the right hand side.&lt;/P&gt;

&lt;P&gt;Any hints?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;simuvid&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2011 13:46:48 GMT</pubDate>
    <dc:creator>simuvid</dc:creator>
    <dc:date>2011-06-09T13:46:48Z</dc:date>
    <item>
      <title>Subsearch does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25798#M4899</link>
      <description>&lt;P&gt;What is wrong with following search:&lt;/P&gt;

&lt;P&gt;sourcetype="security" ip=[search sourcetype=access_combined status=401 clientip=* | transaction fields clientip | where eventcount&amp;gt;2 | stats count, values(clientip) by status]&lt;/P&gt;

&lt;P&gt;What I get is following message:&lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '=' has an invalid term on the right hand side.&lt;/P&gt;

&lt;P&gt;Any hints?&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;simuvid&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2011 13:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25798#M4899</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2011-06-09T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25799#M4900</link>
      <description>&lt;P&gt;A subsearch is used this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="security" [ search sourcetype=access_combined status=401 clientip=* | transaction fields clientip | where eventcount&amp;gt;2 | fields clientip | dedup clientip | rename clientip as ip ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The subsearch should return a result like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|    ip     |
| --------- |
| 10.1.1.1  |
| 10.1.1.2  |
| 10.1.1.3  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which will expanded to the following condition:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( ( ip="10.1.1.1") OR (ip="10.1.1.2") OR (ip="10.1.1.3") )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can inspect the conditions generated by the subsearch by executing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined status=401 clientip=* | transaction fields clientip | where eventcount&amp;gt;2 | fields clientip | dedup clientip | rename clientip as ip | format
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2011 14:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25799#M4900</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-06-09T14:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25800#M4901</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;

&lt;P&gt;That one works as expected!&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;simuvid&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2011 12:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-does-not-work/m-p/25800#M4901</guid>
      <dc:creator>simuvid</dc:creator>
      <dc:date>2011-06-10T12:55:37Z</dc:date>
    </item>
  </channel>
</rss>

