<?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: How to use predict command in tabular format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661358#M228334</link>
    <description>How many (approximately) index sourcetype pairs you have? Only those few or e.g. tens/hundreds?</description>
    <pubDate>Thu, 19 Oct 2023 11:57:52 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-10-19T11:57:52Z</dc:date>
    <item>
      <title>How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661263#M228302</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have data in the form of a table with two fields: index, sourcetype. Each row has unique pair of values for the two fields.&lt;/P&gt;&lt;P&gt;I need your guidance to compute and publish the forecast value for number of events&amp;nbsp; next day based on historical data fetched for each row on the basis of corresponding index and sourcetype.&lt;/P&gt;&lt;P&gt;Any inputs and guidance will be very helpful.&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Taruchit&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 19:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661263#M228302</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-10-18T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661318#M228318</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;predict needs a time series data for make a forecast. Also it needs enough datapoints to do that forecast.&lt;/P&gt;&lt;P&gt;Based on your need you should/could select user algorithm and other needed parameters or use just predict with field lists like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal source=*/var/log/splunk/*.log
| timechart count by sourcetype
| fields splunkd splunkd_access
| predict splunkd splunkd_access&lt;/LI-CODE&gt;&lt;P&gt;Could you share your current data (inside "&amp;lt;/&amp;gt;" block)?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 07:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661318#M228318</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-10-19T07:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661349#M228326</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The data is in the lookup file is in the form below, I need to read data from each row and compute the results: -&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index   sourcetype
-----------------------
idx1    s1
idx2    s2
idx3    s3
idx1    s4&lt;/LI-CODE&gt;&lt;P&gt;Now I need to compute and display results of each row by running predict command on each of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;The base query that I have built for running predict command that will fetch the forecast values for each row: -&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=custom_index orig_index=idx1 orig_sourcetype=s1 earliest=-4w@w latest=-2d@d
| timechart span=1d avg(event_count) AS avg_event_count 
| predict avg_event_count
| tail 1
| fields prediction(avg_event_count)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Please share if you need any more details from my end. I hope to seek your inputs on solving the problem.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661349#M228326</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-10-19T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661358#M228334</link>
      <description>How many (approximately) index sourcetype pairs you have? Only those few or e.g. tens/hundreds?</description>
      <pubDate>Thu, 19 Oct 2023 11:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661358#M228334</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-10-19T11:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661360#M228336</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The current count is under 150.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/661360#M228336</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-10-19T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use predict command in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/670435#M229831</link>
      <description>&lt;P&gt;As long as you have only some pairs you could try map command&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.1.2/SearchReference/Map" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.1.2/SearchReference/Map&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But you must follow up it's memory and other resource usage and when needed switch to other way to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 08:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-predict-command-in-tabular-format/m-p/670435#M229831</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-12-01T08:45:50Z</dc:date>
    </item>
  </channel>
</rss>

