<?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: Search Job Investigation after search with no results shows &amp;quot;None&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623588#M216774</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; clause of the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; commands must use field names present in the datamodel, which must include the DM object name.&amp;nbsp; DNS.message_type, for example.&amp;nbsp; I don't see&amp;nbsp;dns_request_client_ip in the Network_Resolution datamodel, however.&amp;nbsp; Using a non-existing field in the &lt;FONT face="courier new,courier"&gt;by&lt;/FONT&gt; clause will produce zero results.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 16:42:39 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-12-07T16:42:39Z</dc:date>
    <item>
      <title>Search Job Investigation after search with no results shows "None"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623558#M216764</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;the following search&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=index1 message_type=query 
NOT 
([|inputlookup lookup1 | fields ip_address |rename ip_address as dns_request_client_ip]) 
NOT 
dns_request_client_ip=127.0.0.1
|stats count by dns_request_client_ip&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;shows me &lt;STRONG&gt;23300 matched&lt;/STRONG&gt; events and shows me a table in statistics with those results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I try to use tstats (in that case the datamodel Network_Resolution has all the data for index1) it&amp;nbsp; shows me 0 results, even tho when I only search the tstats datamodel with no other things like lookup etc. it gives me &lt;STRONG&gt;5 million matches&lt;/STRONG&gt; but doesn't show me anything in statistics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also, in job inspector it shows me that the highlighted portion didn't result in any results and the only highlightet part is behind |tstats (in which nothing should be) and it says "NONE |tstats .... " why is this none there? my &lt;STRONG&gt;tstat&lt;/STRONG&gt; is as follows:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|tstats count as count from datamodel=Network_Resolution 
where 
(message_type=query) by dns_request_client_ip&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then I try to combine it with the rest of the search as stated above via |&lt;STRONG&gt;search&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|search 
NOT 
([|inputlookup lookup1 | fields ip_address |rename ip_address as dns_request_client_ip]) 
NOT 
dns_request_client_ip=127.0.0.1
|stats count by dns_request_client_ip&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there must be something logically wrong with my approach, right?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot for any help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623558#M216764</guid>
      <dc:creator>avoelk</dc:creator>
      <dc:date>2022-12-07T15:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search Job Investigation after search with no results shows "None"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623588#M216774</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; clause of the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; commands must use field names present in the datamodel, which must include the DM object name.&amp;nbsp; DNS.message_type, for example.&amp;nbsp; I don't see&amp;nbsp;dns_request_client_ip in the Network_Resolution datamodel, however.&amp;nbsp; Using a non-existing field in the &lt;FONT face="courier new,courier"&gt;by&lt;/FONT&gt; clause will produce zero results.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 16:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623588#M216774</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-07T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search Job Investigation after search with no results shows "None"</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623599#M216776</link>
      <description>&lt;P&gt;ah gosh, that must be it. thanks a lot! I'll try it asap &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tnx rich!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 15:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Job-Investigation-after-search-with-no-results-shows-quot/m-p/623599#M216776</guid>
      <dc:creator>avoelk</dc:creator>
      <dc:date>2022-12-07T15:01:22Z</dc:date>
    </item>
  </channel>
</rss>

