<?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 REST API tstats results slow in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REST-API-tstats-results-slow/m-p/583040#M203032</link>
    <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I am definitely a splunk novice. I want to run a search with the splunk REST API. it is a tstats on a datamodel. the issue i am facing is that the result take extremely long to return.&lt;/P&gt;&lt;P&gt;when i run the same search on the front end its extremely fast but via the rest API for 3 results it takes between 7-10 min where as on the front end it returns the results quickly.&lt;/P&gt;&lt;P&gt;my search is structured as follows:&lt;/P&gt;&lt;P&gt;https://&amp;lt;server&amp;gt;:8089/services/search/jobs -d " search= |&amp;nbsp; tstats summariesonly=1 values(&amp;lt;value&amp;gt;) (there are a few values after this) from datamodel=&amp;lt;datamodel name&amp;gt; WHERE (some values for the values option before the from) | head 3" -d earliest= &lt;A href="mailto:-5m@m" target="_blank"&gt;-5m@m&lt;/A&gt;&amp;nbsp;-d latest =now -d output_mode=json&lt;/P&gt;&lt;P&gt;So when running an index search on which the datamodel is built (which is slower on the front end) it returns results as soon as i run the /results endpoint but the datamodel search takes extremely long.&lt;/P&gt;&lt;P&gt;Any ideas as to what my problem could be. The search does eventually return the results but it takes very long for the result size im requesting.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jan 2022 23:15:09 GMT</pubDate>
    <dc:creator>zubairaizatron</dc:creator>
    <dc:date>2022-01-30T23:15:09Z</dc:date>
    <item>
      <title>REST API tstats results slow</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REST-API-tstats-results-slow/m-p/583040#M203032</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I am definitely a splunk novice. I want to run a search with the splunk REST API. it is a tstats on a datamodel. the issue i am facing is that the result take extremely long to return.&lt;/P&gt;&lt;P&gt;when i run the same search on the front end its extremely fast but via the rest API for 3 results it takes between 7-10 min where as on the front end it returns the results quickly.&lt;/P&gt;&lt;P&gt;my search is structured as follows:&lt;/P&gt;&lt;P&gt;https://&amp;lt;server&amp;gt;:8089/services/search/jobs -d " search= |&amp;nbsp; tstats summariesonly=1 values(&amp;lt;value&amp;gt;) (there are a few values after this) from datamodel=&amp;lt;datamodel name&amp;gt; WHERE (some values for the values option before the from) | head 3" -d earliest= &lt;A href="mailto:-5m@m" target="_blank"&gt;-5m@m&lt;/A&gt;&amp;nbsp;-d latest =now -d output_mode=json&lt;/P&gt;&lt;P&gt;So when running an index search on which the datamodel is built (which is slower on the front end) it returns results as soon as i run the /results endpoint but the datamodel search takes extremely long.&lt;/P&gt;&lt;P&gt;Any ideas as to what my problem could be. The search does eventually return the results but it takes very long for the result size im requesting.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jan 2022 23:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REST-API-tstats-results-slow/m-p/583040#M203032</guid>
      <dc:creator>zubairaizatron</dc:creator>
      <dc:date>2022-01-30T23:15:09Z</dc:date>
    </item>
  </channel>
</rss>

