<?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 using boolean logic in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227835#M188362</link>
    <description>&lt;P&gt;You can use a &lt;CODE&gt;case&lt;/CODE&gt; statement to do this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | eval Your_field=case(sourcetype == sourcetype1, "true", sourcetype == sourcetype2, "true" , 1=1, "false")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2016 15:01:07 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2016-08-12T15:01:07Z</dc:date>
    <item>
      <title>Subsearch using boolean logic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227834#M188361</link>
      <description>&lt;P&gt;Hello, I am looking for a search query that can also be used as a dashboard. &lt;BR /&gt;
The query has to search two different sourcetypes , look for data (eventtype,file...etc.) and if the information is missing in one sourcetype and found in another, then it will provided that data for that sourcetype.  &lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227834#M188361</guid>
      <dc:creator>bluemarvel</dc:creator>
      <dc:date>2016-08-12T14:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch using boolean logic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227835#M188362</link>
      <description>&lt;P&gt;You can use a &lt;CODE&gt;case&lt;/CODE&gt; statement to do this &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | eval Your_field=case(sourcetype == sourcetype1, "true", sourcetype == sourcetype2, "true" , 1=1, "false")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 15:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227835#M188362</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-08-12T15:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch using boolean logic</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227836#M188363</link>
      <description>&lt;P&gt;Could you be more specific in your requirement, supported with sample queries/events and expected output?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 16:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-boolean-logic/m-p/227836#M188363</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-12T16:32:53Z</dc:date>
    </item>
  </channel>
</rss>

