<?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: Need help on subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-subsearch/m-p/85663#M21882</link>
    <description>&lt;P&gt;Hi Alice,&lt;/P&gt;

&lt;P&gt;Have you tried something like this?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* [search ipAddress=123 AND userId=123 AND productId=123 | fields + ipAddress,userId,productId | format "(" "(" "OR" ")" "OR" ")"]&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2010 12:06:19 GMT</pubDate>
    <dc:creator>hulahoop</dc:creator>
    <dc:date>2010-11-11T12:06:19Z</dc:date>
    <item>
      <title>Need help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-subsearch/m-p/85662#M21881</link>
      <description>&lt;P&gt;I have a log statement that looks list this:
ipAddress=1.2.3.4,userId=42,productId=24&lt;/P&gt;

&lt;P&gt;Currently I manually first search "ipAddress=" AND "userId=" AND "productId="
to pull out the 3 values.  Then I search for the union of these fields:
search "ipAddress=1.2.3.4" OR "userId=42" OR "productId=24".&lt;/P&gt;

&lt;P&gt;How can I automated this two searches?  I tried following the subsearch example but it's not working.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 01:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-subsearch/m-p/85662#M21881</guid>
      <dc:creator>wang</dc:creator>
      <dc:date>2010-11-09T01:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-subsearch/m-p/85663#M21882</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;

&lt;P&gt;Have you tried something like this?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* [search ipAddress=123 AND userId=123 AND productId=123 | fields + ipAddress,userId,productId | format "(" "(" "OR" ")" "OR" ")"]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 12:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-subsearch/m-p/85663#M21882</guid>
      <dc:creator>hulahoop</dc:creator>
      <dc:date>2010-11-11T12:06:19Z</dc:date>
    </item>
  </channel>
</rss>

