<?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 fields - values search command breaks dashboard when edit mode was activated in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272206#M81908</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm running Splunk 6.4.0 with two customers.&lt;/P&gt;

&lt;P&gt;When using the fields - values search command, the dashboard is not showing any data after I have clicked on Edit --&amp;gt; Panels. The spaces are automatically removed from fields - values --&amp;gt; fields-values resulting in the dashboard not showing any data any more (I can't attach a screenshot due to missing karma points). This is really annoying.&lt;/P&gt;

&lt;P&gt;Maybe external links are allowed: &lt;A href="http://imgur.com/a/4tGWt" target="_blank"&gt;http://imgur.com/a/4tGWt&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm using the following search string:&lt;/P&gt;

&lt;P&gt;index=otcs eventtype="SummaryTiming" | stats count values(FunctionAction), avg(ExecutionTime) by ContextUserName| fields  -  values(FunctionAction) | $user_avgexecution_sort$ | Rename ContextUserName as "Requesting User" | Rename count as "Number of Requests" | Rename avg(ExecutionTime) as "Average Execution Time"&lt;/P&gt;

&lt;P&gt;Is this a bug of Splunk 6.4.x?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:41:31 GMT</pubDate>
    <dc:creator>mhornste</dc:creator>
    <dc:date>2020-09-29T12:41:31Z</dc:date>
    <item>
      <title>fields - values search command breaks dashboard when edit mode was activated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272206#M81908</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm running Splunk 6.4.0 with two customers.&lt;/P&gt;

&lt;P&gt;When using the fields - values search command, the dashboard is not showing any data after I have clicked on Edit --&amp;gt; Panels. The spaces are automatically removed from fields - values --&amp;gt; fields-values resulting in the dashboard not showing any data any more (I can't attach a screenshot due to missing karma points). This is really annoying.&lt;/P&gt;

&lt;P&gt;Maybe external links are allowed: &lt;A href="http://imgur.com/a/4tGWt" target="_blank"&gt;http://imgur.com/a/4tGWt&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm using the following search string:&lt;/P&gt;

&lt;P&gt;index=otcs eventtype="SummaryTiming" | stats count values(FunctionAction), avg(ExecutionTime) by ContextUserName| fields  -  values(FunctionAction) | $user_avgexecution_sort$ | Rename ContextUserName as "Requesting User" | Rename count as "Number of Requests" | Rename avg(ExecutionTime) as "Average Execution Time"&lt;/P&gt;

&lt;P&gt;Is this a bug of Splunk 6.4.x?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272206#M81908</guid>
      <dc:creator>mhornste</dc:creator>
      <dc:date>2020-09-29T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: fields - values search command breaks dashboard when edit mode was activated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272207#M81909</link>
      <description>&lt;P&gt;No bug, but you are doing a few things that violate Splunk syntax and make your search run more slowly. Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=otcs eventtype="SummaryTiming" 
| stats count avg(ExecutionTime) as avgTime by ContextUserName
| $user_avgexecution_sort$ 
| Rename ContextUserName as "Requesting User" 
| Rename count as "Number of Requests" | Rename avgTime as "Average Execution Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sometimes Splunk does not like field names that have punctuation in them, some commands don't care. Therefore, I always use the "as" in stats to give those fields better (and easier to read) names. I created a field called avgTime in line 2 and used it in the final line.&lt;BR /&gt;
Also, you created "values(FunctionAction)" in the stats command and then you never used it; you simply removed that result immediately afterward. I solved the problem by simply removing the initial calculation in the stats command.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272207#M81909</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-02-01T21:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: fields - values search command breaks dashboard when edit mode was activated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272208#M81910</link>
      <description>&lt;P&gt;Also if you are going to use the above query in a dashboard make sure you add a preceeding $ and trailing $ to the user_avgexecution_sort&lt;/P&gt;

&lt;P&gt;example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$$user_avgexecution_sort$$
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272208#M81910</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2020-09-29T12:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: fields - values search command breaks dashboard when edit mode was activated</title>
      <link>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272209#M81911</link>
      <description>&lt;P&gt;Thanks, it worked!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 07:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/fields-values-search-command-breaks-dashboard-when-edit-mode-was/m-p/272209#M81911</guid>
      <dc:creator>mhornste</dc:creator>
      <dc:date>2017-02-02T07:37:35Z</dc:date>
    </item>
  </channel>
</rss>

