<?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 to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the &amp;quot;Metadata results may be incomplete: 100000 entries have been received from all peers&amp;quot; Warning in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339145#M100558</link>
    <description>&lt;P&gt;The following is my query&lt;/P&gt;

&lt;P&gt;| metadata type=hosts  | search [| inputlookup hostnames.csv | rename my_hostname as host  | eval host=lower(host) &lt;BR /&gt;
       | table host ] &lt;BR /&gt;
  | eval lastTime=coalesce(lastTime,0)&lt;BR /&gt;
  | eval timeDiff=now()-lastTime&lt;BR /&gt;
  | eval last_seen_in_24_hours=if(timeDiff&amp;gt;86400,"NO","YES")&lt;BR /&gt;
  | eval lastReported=if(lastTime=0,"never",strftime(lastTime,"%F %T"))&lt;BR /&gt;
  | stats count by last_seen_in_24_hours &lt;/P&gt;

&lt;P&gt;Now, The issue is that I have around 1000 hosts in the csv file but from the above query i can able to see only 400 hosts's information and also seen the below warning on the job.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/215578-warning.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now how to modify my current query to overcome that warning and display all the 1000 hosts reporting status ?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:47:08 GMT</pubDate>
    <dc:creator>pavanae</dc:creator>
    <dc:date>2020-09-29T15:47:08Z</dc:date>
    <item>
      <title>how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339145#M100558</link>
      <description>&lt;P&gt;The following is my query&lt;/P&gt;

&lt;P&gt;| metadata type=hosts  | search [| inputlookup hostnames.csv | rename my_hostname as host  | eval host=lower(host) &lt;BR /&gt;
       | table host ] &lt;BR /&gt;
  | eval lastTime=coalesce(lastTime,0)&lt;BR /&gt;
  | eval timeDiff=now()-lastTime&lt;BR /&gt;
  | eval last_seen_in_24_hours=if(timeDiff&amp;gt;86400,"NO","YES")&lt;BR /&gt;
  | eval lastReported=if(lastTime=0,"never",strftime(lastTime,"%F %T"))&lt;BR /&gt;
  | stats count by last_seen_in_24_hours &lt;/P&gt;

&lt;P&gt;Now, The issue is that I have around 1000 hosts in the csv file but from the above query i can able to see only 400 hosts's information and also seen the below warning on the job.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/215578-warning.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Now how to modify my current query to overcome that warning and display all the 1000 hosts reporting status ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339145#M100558</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-09-29T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339146#M100559</link>
      <description>&lt;P&gt;Seems like you've hit the limit of metadata command. You can try this alternative. You can use timerange for this query as last 24 hrs as you just want to know if the host's have sent data in last 24 hrs or not.&lt;BR /&gt;
&lt;STRONG&gt;Updated&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(_time) as lastTime WHERE index=* [| inputlookup hostnames.csv | rename my_hostname as host | eval host=lower(host) | table host | format ] by host 
| inputlookup hostnames.csv append=t | eval lastTime=coalesce(lastTime,0)
| eval timeDiff=now()-lastTime
| eval last_seen_in_24_hours=if(timeDiff&amp;gt;86400,"NO","YES")
| eval lastReported=if(lastTime=0,"never",strftime(lastTime,"%F %T"))
| stats count by last_seen_in_24_hours
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 16:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339146#M100559</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-14T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339147#M100560</link>
      <description>&lt;P&gt;Thanks for the response @somesoni2 . The above query ended with the following error&lt;/P&gt;

&lt;P&gt;Error in 'TsidxStats': WHERE clause is not an exact query&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339147#M100560</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2017-09-14T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339148#M100561</link>
      <description>&lt;P&gt;Try the updated answer.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339148#M100561</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-14T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339149#M100562</link>
      <description>&lt;P&gt;still same error @somesoni2&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339149#M100562</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2017-09-14T17:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to use metadata to find the last reporting time of a list of hosts from a lookuptable without getting the "Metadata results may be incomplete: 100000 entries have been received from all peers" Warning</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339150#M100563</link>
      <description>&lt;P&gt;That's strange. Similar query just works fine for me. Can you just run below and what result you get? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup hostnames.csv | rename my_hostname as host | eval host=lower(host) | table host | format
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Sep 2017 19:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-metadata-to-find-the-last-reporting-time-of-a-list-of/m-p/339150#M100563</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-14T19:02:58Z</dc:date>
    </item>
  </channel>
</rss>

