<?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 How do I find missing information from query 2 and query 1 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420591#M167728</link>
    <description>&lt;P&gt;I am trying to find missing stores from query 2 in the below script. However, it returns no results, or all results depending on the search. For the purposes of my search, I know the correct result is one. Can you please assist me in my evaluations to get what I'm seeking? I've beeing trying this for days now. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=s*0009 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\\Program\\Bin\\potato.exe" | dedup host | eval StoreCallEDW=substr(ComputerName,2,4) | search [ search index=mainframe host=MVSB* MFSOURCETYPE=SMF080 *CFT* DEFINE_RESOURCE="SUCCESSFUL_DEFINITION" | spath RESOURCE_NAME | search RESOURCE_NAME="EDWABP.V15.TLOG.DATA.*" | eval StoreonMainframe=substr(RESOURCE_NAME,29,4)] | table nodiff StoreEDWFile StoreonMainframe
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Aug 2018 20:27:33 GMT</pubDate>
    <dc:creator>benj851</dc:creator>
    <dc:date>2018-08-23T20:27:33Z</dc:date>
    <item>
      <title>How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420591#M167728</link>
      <description>&lt;P&gt;I am trying to find missing stores from query 2 in the below script. However, it returns no results, or all results depending on the search. For the purposes of my search, I know the correct result is one. Can you please assist me in my evaluations to get what I'm seeking? I've beeing trying this for days now. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=s*0009 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\\Program\\Bin\\potato.exe" | dedup host | eval StoreCallEDW=substr(ComputerName,2,4) | search [ search index=mainframe host=MVSB* MFSOURCETYPE=SMF080 *CFT* DEFINE_RESOURCE="SUCCESSFUL_DEFINITION" | spath RESOURCE_NAME | search RESOURCE_NAME="EDWABP.V15.TLOG.DATA.*" | eval StoreonMainframe=substr(RESOURCE_NAME,29,4)] | table nodiff StoreEDWFile StoreonMainframe
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:27:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420591#M167728</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2018-08-23T20:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420592#M167729</link>
      <description>&lt;P&gt;I’ve tried using not before the sub query instead of the bool check at the end.  It was also not successful &lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 23:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420592#M167729</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2018-08-23T23:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420593#M167730</link>
      <description>&lt;P&gt;is it possible to get the small set of results of both queries?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 09:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420593#M167730</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2018-08-24T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420594#M167731</link>
      <description>&lt;P&gt;Using NOT and a subsearch: No results are returned for the subsearch when there should be 1200+. Each query should return 1200+ results:&lt;/P&gt;

&lt;P&gt;host=s02*0004 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\program\Bin\pototo.exe" | dedup host | eval StoreEDWFile=substr(ComputerName,2,4) | sort StoreEDWFile | search NOT [ search index=mainframe host=MVSB* MFSOURCETYPE=SMF080 &lt;EM&gt;CFT&lt;/EM&gt; DEFINE_RESOURCE="SUCCESSFUL_DEFINITION" | spath RESOURCE_NAME | search RESOURCE_NAME="EDWABP.V15.TLOG.DATA.*" | eval StoreonMainframe=substr(RESOURCE_NAME,29,4)] | sort StoreonMainframe | table StoreEDWFile StoreonMainframe&lt;/P&gt;

&lt;P&gt;returns only values for StoreEDWFile: &lt;/P&gt;

&lt;P&gt;StoreEDWFile    StoreonMainframe&lt;BR /&gt;
0202&lt;BR /&gt;&lt;BR /&gt;
0203&lt;BR /&gt;&lt;BR /&gt;
0204&lt;BR /&gt;&lt;BR /&gt;
0205     &lt;/P&gt;

&lt;P&gt;This is a problem because StoreEDWFile is not in question. StoreonMainframe should have been missing &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:59:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420594#M167731</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2020-09-29T20:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420595#M167732</link>
      <description>&lt;P&gt;This should return one result on StoreonMainframe; but the only results returned are for nodiff. When you view the results they are related to StoreCallEDW.&lt;BR /&gt;
host=s008*0004 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\program\Bin\potato.exe" | dedup host | eval StoreCallEDW=substr(ComputerName,2,4) | sort StoreCallEDW |search NOT [ search index=mainframe host=MVSB* MFSOURCETYPE=SMF080 &lt;EM&gt;CFT&lt;/EM&gt; DEFINE_RESOURCE="SUCCESSFUL_DEFINITION" | spath RESOURCE_NAME | search RESOURCE_NAME="EDWABP.V15.TLOG.DATA.*" | eval StoreonMainframe=substr(RESOURCE_NAME,29,4) | Sort StoreonMainframe] | eval nodiff=if(match(StoreCallEDW,StoreonMainframe), "True", "False")| table nodiff StoreEDWFile StoreonMainframe&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
nodiff  StoreEDWFile    StoreonMainframe&lt;BR /&gt;
False&lt;BR /&gt;&lt;BR /&gt;
False&lt;BR /&gt;&lt;BR /&gt;
False&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420595#M167732</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2020-09-29T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420596#M167733</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;In this example I'm simply asking for results for each query but I get no results:

host=s008*0004 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\\program\\Bin\\potato.exe" | dedup host | eval StoreCallEDW=substr(ComputerName,2,4) | search [ search index=mainframe host=MVSB* MFSOURCETYPE=SMF080 *CFT* DEFINE_RESOURCE="SUCCESSFUL_DEFINITION" | spath RESOURCE_NAME | search RESOURCE_NAME="EDWABP.V15.TLOG.DATA.*" | eval StoreonMainframe=substr(RESOURCE_NAME,29,4)] |  table StoreEDWFile StoreonMainframe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: &lt;BR /&gt;
No Results found&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 18:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420596#M167733</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2018-08-24T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find missing information from query 2 and query 1</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420597#M167734</link>
      <description>&lt;P&gt;Here is just the first query, the query that must have something in order for the subquery to &lt;EM&gt;possibly&lt;/EM&gt; have something: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=s008*0004 Type=Information EventCodeDescription="A new process has been created" New_Process_Name="D:\\Program\\Bin\\potato.exe" | dedup host | eval StoreCallEDW=substr(ComputerName,2,4) | table StoreCallEDW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results are: &lt;/P&gt;

&lt;P&gt;StoreCallEDW&lt;BR /&gt;
0084&lt;BR /&gt;
0086&lt;BR /&gt;
0080&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 18:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-find-missing-information-from-query-2-and-query-1/m-p/420597#M167734</guid>
      <dc:creator>benj851</dc:creator>
      <dc:date>2018-08-24T18:02:18Z</dc:date>
    </item>
  </channel>
</rss>

