<?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: Splunk Panel delayed update with no indicator in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706702#M57873</link>
    <description>&lt;P&gt;This is not really what chained searches are good for - what you are doing is basically loading the entire dataset into memory in your &lt;STRONG&gt;index=&lt;/STRONG&gt; base search. How many events do you have - there is a limit to the number of results a base search can retain.&lt;/P&gt;&lt;P&gt;For this type of usage, you will often make the search slower because all the processing is done on the search head rather than using the benefit of search distribution.&lt;/P&gt;&lt;P&gt;The issue you are seeing I suspect will be related to the data volumes you are trying to manage through your base search.&lt;/P&gt;&lt;P&gt;Depending on what other searches you have, your search chain might be better expressed by this&lt;/P&gt;&lt;P&gt;Base search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=yum sourcetype=woohoo earliest=-12h@h
| stats sum(field3) as field3 by field1 field2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chain search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search field1="$field1_tok$" AND field2="$field2_tok$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Panel&lt;/P&gt;&lt;P&gt;Your original search makes no sense, because you are doing a stats command and then trying to use device_name which does not exist after the stats. Also you only have a single row after the stats, so the sort and head are pointless....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort - field3
| head 10
| table device_name field3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, you should ALWAYS put your transforming commands as late as possible in any pipeline - i.e. it is better to put the head BEFORE the table, so in a normal search you would only get 10 results from the indexer to the search head rather than sending all results and discarding all but 10.&lt;/P&gt;&lt;P&gt;The above will depend on what other usage you are making from your base search, but please come back with more details if you still need advice.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2024 00:03:20 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-12-13T00:03:20Z</dc:date>
    <item>
      <title>Splunk Panel delayed update with no indicator</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706699#M57872</link>
      <description>&lt;P&gt;I have a search on my dashboard that takes ~20 seconds to complete.&amp;nbsp; This search is a member of a chain. base:&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=yum sourcetype=woohoo earliest=-12h@h
| table device_name field1 field2 field3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chained search:&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 field1="$field1_tok$" AND field2="$field2_tok$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Panel:&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;| stats sum(field3) as field3 by device_name
| sort - field3
| table device_name field3
| head 10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works fine but when I change tokens the panel loads&amp;nbsp; a cached version of the table with incorrect values. 5 to 10 seconds later the panel updates with the correct values but without any indication. So, Is there a setting to turn off these cached results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 00:15:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706699#M57872</guid>
      <dc:creator>Anubis</dc:creator>
      <dc:date>2024-12-13T00:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Panel delayed update with no indicator</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706702#M57873</link>
      <description>&lt;P&gt;This is not really what chained searches are good for - what you are doing is basically loading the entire dataset into memory in your &lt;STRONG&gt;index=&lt;/STRONG&gt; base search. How many events do you have - there is a limit to the number of results a base search can retain.&lt;/P&gt;&lt;P&gt;For this type of usage, you will often make the search slower because all the processing is done on the search head rather than using the benefit of search distribution.&lt;/P&gt;&lt;P&gt;The issue you are seeing I suspect will be related to the data volumes you are trying to manage through your base search.&lt;/P&gt;&lt;P&gt;Depending on what other searches you have, your search chain might be better expressed by this&lt;/P&gt;&lt;P&gt;Base search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=yum sourcetype=woohoo earliest=-12h@h
| stats sum(field3) as field3 by field1 field2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chain search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| search field1="$field1_tok$" AND field2="$field2_tok$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Panel&lt;/P&gt;&lt;P&gt;Your original search makes no sense, because you are doing a stats command and then trying to use device_name which does not exist after the stats. Also you only have a single row after the stats, so the sort and head are pointless....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort - field3
| head 10
| table device_name field3&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, you should ALWAYS put your transforming commands as late as possible in any pipeline - i.e. it is better to put the head BEFORE the table, so in a normal search you would only get 10 results from the indexer to the search head rather than sending all results and discarding all but 10.&lt;/P&gt;&lt;P&gt;The above will depend on what other usage you are making from your base search, but please come back with more details if you still need advice.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 00:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706702#M57873</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-13T00:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Panel delayed update with no indicator</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706704#M57874</link>
      <description>&lt;P&gt;Hello, thanks for the response. I forgot to include the 'by device_name' in my post. Sorry about that.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. how many events in base search: 1.6 million&lt;BR /&gt;&lt;BR /&gt;2. I used the tokens in the chained search to not call the index every time a token is changed. Seemed logical&lt;/P&gt;&lt;P&gt;3. Putting head infront of table is better. honest mistake&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 00:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706704#M57874</guid>
      <dc:creator>Anubis</dc:creator>
      <dc:date>2024-12-13T00:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Panel delayed update with no indicator</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706706#M57875</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274837"&gt;@Anubis&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;1. how many events in base search: 1.6 million&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is your problem. Although not specifically about dashboard studio, which you seem to be using as you talk about chained searches, the limit is 500,000 events.&lt;/P&gt;&lt;P&gt;What you are intending to do, i.e. post filter a base, is indeed logical, but there is no way you can manage 1.6 million event in a base search - see this link for a discussion on base searches - a chained search is what is referred to as a post-processing search.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.2/Viz/Savedsearches" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.3.2/Viz/Savedsearches&lt;/A&gt;&lt;/P&gt;&lt;P&gt;with particular reference to &lt;STRONG&gt;Event retention&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;Limit base search results and post-process complexity&lt;/STRONG&gt;&amp;nbsp;and do not think about increasing limits.conf, that will not make things bette&lt;/P&gt;&lt;P&gt;You can still bump the post processing/chained search out of the base, but you need to consider each use case of your base search to work out how that post filtering can work.&lt;/P&gt;&lt;P&gt;If your panel searches are all doing things like stats, then move the stats down to the base search.&lt;/P&gt;&lt;P&gt;You can always do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by a b c d&lt;/LI-CODE&gt;&lt;P&gt;and if you only want a count by c, you can then do this in your panel search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats sum(c) as c&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 02:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/706706#M57875</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-12-13T02:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Panel delayed update with no indicator</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/707074#M57878</link>
      <description>&lt;P&gt;Thanks for the response. I've tweaked my logic to reduce the number of lines I need in my base search making sure I do a stats in my base search before the chain. Closing this out&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 20:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Panel-delayed-update-with-no-indicator/m-p/707074#M57878</guid>
      <dc:creator>Anubis</dc:creator>
      <dc:date>2024-12-17T20:34:47Z</dc:date>
    </item>
  </channel>
</rss>

