<?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 Why is my below search throwing the following error: &amp;quot;Predict Error:  Too few data points: -5.&amp;quot; ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-below-search-throwing-the-following-error-quot-Predict/m-p/456578#M129063</link>
    <description>&lt;P&gt;The search below throws the error whenever there are more than two hosts searched for.: &lt;STRONG&gt;command="predict", Too few data points: -5. Need at least 1 (too many holdbacks (5) maybe?)&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;If searching for just one host, the data is perfect. I have 700+ hosts that I need to run this against. Any ideas?&lt;/P&gt;

&lt;P&gt;Here is the search that returns the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test_diskusage.csv | search host=splunk-indexer-1 | eval _time=strptime(date, "%Y-%m-%d") | timechart span=1d values("/opt/splunk") as "/opt/splunk", values(cold0) AS cold0, values(cold1) AS cold1, values(hot0) AS hot0, values(hot1) AS hot1, values(hot2) AS hot2 | predict "/opt/splunk" "cold0" "cold1" "hot0" "hot1" "hot2" algorithm=LLP5 holdback=5 future_timespan=25 upper95=upper95 lower95=lower95
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Sep 2018 16:53:26 GMT</pubDate>
    <dc:creator>johnnyfrx</dc:creator>
    <dc:date>2018-09-12T16:53:26Z</dc:date>
    <item>
      <title>Why is my below search throwing the following error: "Predict Error:  Too few data points: -5." ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-below-search-throwing-the-following-error-quot-Predict/m-p/456578#M129063</link>
      <description>&lt;P&gt;The search below throws the error whenever there are more than two hosts searched for.: &lt;STRONG&gt;command="predict", Too few data points: -5. Need at least 1 (too many holdbacks (5) maybe?)&lt;/STRONG&gt;  &lt;/P&gt;

&lt;P&gt;If searching for just one host, the data is perfect. I have 700+ hosts that I need to run this against. Any ideas?&lt;/P&gt;

&lt;P&gt;Here is the search that returns the error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup test_diskusage.csv | search host=splunk-indexer-1 | eval _time=strptime(date, "%Y-%m-%d") | timechart span=1d values("/opt/splunk") as "/opt/splunk", values(cold0) AS cold0, values(cold1) AS cold1, values(hot0) AS hot0, values(hot1) AS hot1, values(hot2) AS hot2 | predict "/opt/splunk" "cold0" "cold1" "hot0" "hot1" "hot2" algorithm=LLP5 holdback=5 future_timespan=25 upper95=upper95 lower95=lower95
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 16:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-below-search-throwing-the-following-error-quot-Predict/m-p/456578#M129063</guid>
      <dc:creator>johnnyfrx</dc:creator>
      <dc:date>2018-09-12T16:53:26Z</dc:date>
    </item>
  </channel>
</rss>

