<?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: Search fails when moved to Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567736#M46624</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238629"&gt;@joelm1822&lt;/a&gt;&amp;nbsp;Can you show the source code error ?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 18:40:02 GMT</pubDate>
    <dc:creator>ashvinpandey</dc:creator>
    <dc:date>2021-09-20T18:40:02Z</dc:date>
    <item>
      <title>Search fails when moved to Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567518#M46602</link>
      <description>&lt;P&gt;I'm new to Splunk.&lt;/P&gt;&lt;P&gt;I've got a Search that works fine in the Search screen and correctly generates a bar chart.&lt;/P&gt;&lt;P&gt;index="production" source="s3://hydrow-android-logs-input-queue-prod/console/*" logWorkoutEndDebugStats releaseStage="production"&lt;BR /&gt;| rename workoutEndInfo.videoRestartStats.videoStopped as videoStops&lt;BR /&gt;| stats count by buildNumber, videoStops&lt;BR /&gt;| eventstats sum(count) as itemTotal by buildNumber&lt;BR /&gt;| eval percentage=round((count / itemTotal) * 100 , 1 )&lt;BR /&gt;| search videoStops = true&lt;BR /&gt;| chart values(percentage) over buildNumber by videoStops&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error when rendering as chart on a dashboard:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-09-18 at 11.12.43 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16044i5DF314612A350543/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-09-18 at 11.12.43 AM.png" alt="Screen Shot 2021-09-18 at 11.12.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When I Save it to a dashboard or create a new chart on the dashboard and enter the search as the datasource, I get the error below. &amp;nbsp;if I change the visualization from a chart to a table, then the table renders fine. &amp;nbsp;There's no indication of why the visualization works fine on the Search page, but not the dashboard. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to debug this would be very welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 15:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567518#M46602</guid>
      <dc:creator>joelm1822</dc:creator>
      <dc:date>2021-09-18T15:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Search fails when moved to Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567734#M46623</link>
      <description>&lt;P&gt;Do the _internal logs provide any additional information?&lt;/P&gt;&lt;P&gt;Does the same issue occur regardless of whether the search is inline or report-driven?&lt;/P&gt;&lt;P&gt;Does the browser console provide some more insight into the JavaScript error?&lt;/P&gt;&lt;P&gt;Potentially authorisation or app scope issues, or a need to separate into base and post process searches.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 18:28:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567734#M46623</guid>
      <dc:creator>ro_mc</dc:creator>
      <dc:date>2021-09-20T18:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search fails when moved to Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567736#M46624</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238629"&gt;@joelm1822&lt;/a&gt;&amp;nbsp;Can you show the source code error ?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 18:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567736#M46624</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-20T18:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search fails when moved to Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567739#M46625</link>
      <description>&lt;P&gt;I don't know how to find the source code of the error. I'll do some digging to find the internal logs. &amp;nbsp;(I'm new to Splunk and more used to tools that show you the error rather than hiding it log files somewhere else. &amp;nbsp;Is it even possible with SplunkCloud?)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 18:46:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/567739#M46625</guid>
      <dc:creator>joelm1822</dc:creator>
      <dc:date>2021-09-20T18:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search fails when moved to Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/573055#M47016</link>
      <description>&lt;P&gt;I've dug into this one a bit, and I believe it could be due to the way Splunk uses XML to handle the visualisations. Have you tried using &lt;STRONG&gt;stats&lt;/STRONG&gt; instead of &lt;STRONG&gt;chart&lt;/STRONG&gt; or &lt;STRONG&gt;table&lt;/STRONG&gt;, and then formatting the visualisation as a chart using the GUI?&lt;/P&gt;&lt;P&gt;The XML for an area chart should look something like the following, for example:&lt;/P&gt;&lt;P&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;chart&amp;gt;&amp;lt;title&amp;gt;...&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&amp;lt;query&amp;gt;...&amp;lt;/query&amp;gt;...&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="charting.chart"&amp;gt;area&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/chart&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;/P&gt;&lt;P&gt;I.e. the chart XML is independent from the results returned by the search.&lt;/P&gt;&lt;P&gt;I've worked almost exclusively with on-premises instances, so I can't speak to the accessibility of the _internal index in Splunk cloud, though pressing F12 in your browser to display the console may hint at any other problems that could be occurring here.&lt;/P&gt;&lt;P&gt;Let me know how you go.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 10:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-fails-when-moved-to-Dashboard/m-p/573055#M47016</guid>
      <dc:creator>ro_mc</dc:creator>
      <dc:date>2021-10-30T10:31:39Z</dc:date>
    </item>
  </channel>
</rss>

