<?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: Specify Event Sampling in a query for use in a Dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614865#M213681</link>
    <description>&lt;P&gt;Problem solved. I had the Dashboard pane search settings for the Time Picker set to Global, instead of Shared Time Picker. BUT, I earlier checked the Source of the Dashboard and the Earliest was set to "-24h" and still the search took forever, but directly in Splunk search the same search for 24 hrs was really quick. Maybe when Global is selected as the Time Picker, the Earliest setting is ignored and instead All Time is selected (picked up from elsewhere)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, thanks allot now it works great!!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 06:15:11 GMT</pubDate>
    <dc:creator>dmoberg</dc:creator>
    <dc:date>2022-09-28T06:15:11Z</dc:date>
    <item>
      <title>Is it possible to specify Event Sampling in a query for use in a Dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614686#M213629</link>
      <description>&lt;P&gt;For the type of data I am trying to extract, Event Sampling really speeds up the query. This works fine when executing SPL queries, but I have not been able to figure out how to do this in a dashboard. Found some older posts where "rand" was used, but apparently that did not speed up the query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to specify Event Sampling directly in a Search Query or in the Dashboard in some way?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614686#M213629</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2022-09-27T14:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Event Sampling in a query for use in a Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614692#M213632</link>
      <description>&lt;P&gt;I think this Splunk Docs article should help (Event sampling with reports and dashboard panels topic):&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Retrieveasamplesetofevents" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Retrieveasamplesetofevents&lt;/A&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&amp;lt;event&amp;gt;
  &amp;lt;title&amp;gt;sample events&amp;lt;/title&amp;gt;
  &amp;lt;search&amp;gt;
     &amp;lt;query&amp;gt;buttercupgames&amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
     &amp;lt;sampleRatio&amp;gt;500&amp;lt;/sampleRatio&amp;gt;
  &amp;lt;/search&amp;gt;
&amp;lt;/event&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;_______________________________________&lt;/P&gt;&lt;P&gt;If this was helpful please consider awarding Karma. Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 07:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614692#M213632</guid>
      <dc:creator>FelixLeh</dc:creator>
      <dc:date>2022-09-27T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Event Sampling in a query for use in a Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614762#M213667</link>
      <description>&lt;P&gt;Thanks. I tried it but it seems when this setting is used in the Dashboard there is no performance improvement at all. Running the exact same query directly in SPL with the same Event Sampling is much quicker.&lt;/P&gt;&lt;P&gt;Maybe this is a bug in the implementation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614762#M213667</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2022-09-27T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Event Sampling in a query for use in a Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614765#M213669</link>
      <description>&lt;P&gt;In my tests when I used sampleRatio 5000 and the search time was reduced from 35 seconds to 4.. so it seems to work fine on my end. Maybe there is something in your search/dashboard that limits the speed regardless of sampling? Reasons could be:&lt;/P&gt;&lt;P&gt;- early transformative command like table or stats command that force Splunk to work on the search head instead of index.&lt;/P&gt;&lt;P&gt;- Great amount of searches/panels on Dashboards spike resource usage and may slow down Splunk&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you want to want to describe the surrounding dashboard or the query that you are using I may be able to help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;_______________________________________&lt;/P&gt;&lt;P&gt;If this was helpful please consider awarding Karma. Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614765#M213669</guid>
      <dc:creator>FelixLeh</dc:creator>
      <dc:date>2022-09-27T14:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Event Sampling in a query for use in a Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614865#M213681</link>
      <description>&lt;P&gt;Problem solved. I had the Dashboard pane search settings for the Time Picker set to Global, instead of Shared Time Picker. BUT, I earlier checked the Source of the Dashboard and the Earliest was set to "-24h" and still the search took forever, but directly in Splunk search the same search for 24 hrs was really quick. Maybe when Global is selected as the Time Picker, the Earliest setting is ignored and instead All Time is selected (picked up from elsewhere)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, thanks allot now it works great!!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 06:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614865#M213681</guid>
      <dc:creator>dmoberg</dc:creator>
      <dc:date>2022-09-28T06:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Event Sampling in a query for use in a Dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614885#M213685</link>
      <description>&lt;P&gt;Glad I was able to help!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 07:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-specify-Event-Sampling-in-a-query-for-use-in-a/m-p/614885#M213685</guid>
      <dc:creator>FelixLeh</dc:creator>
      <dc:date>2022-09-28T07:26:13Z</dc:date>
    </item>
  </channel>
</rss>

