<?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: Howto report javascript compilation errors in Simple-XML dashboard script in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329374#M21343</link>
    <description>&lt;P&gt;Thanks @niketnilay - I've certainly used that strategy to determine that a script is NOT compiling - but it's not nearly as helpful as a real syntax error from the compiler.&lt;/P&gt;

&lt;P&gt;Apologies also - I had overlooked the 404 case , it does indeed indicate in the UI with a !Warn banner.&lt;/P&gt;

&lt;P&gt;I'd missed the documentation for mvc debugger. Thanks again.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 03:27:21 GMT</pubDate>
    <dc:creator>abramble</dc:creator>
    <dc:date>2018-03-05T03:27:21Z</dc:date>
    <item>
      <title>Howto report javascript compilation errors in Simple-XML dashboard script</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329372#M21341</link>
      <description>&lt;P&gt;Runtime errors from custom javascript executing on a simple-xml dashboard page are obvious in the console. However - nothing is reported if the custom javascript fails to compile.&lt;/P&gt;

&lt;P&gt;Is there a way to configure splunk to report failed script includes when used in a simple xml dashboard? eg (script could not be loaded 404, or script does not compile)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="custom.js"&amp;gt;
  &amp;lt;label&amp;gt;JS Example&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel id="example"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Adjusted by custom.js&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=blah | stats count by foo&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 02:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329372#M21341</guid>
      <dc:creator>abramble</dc:creator>
      <dc:date>2018-03-05T02:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Howto report javascript compilation errors in Simple-XML dashboard script</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329373#M21342</link>
      <description>&lt;P&gt;@abramble, 404 error is displayed in Console Viewer in Browser Inspector. While testing a JavaScript code you can try placing several &lt;CODE&gt;console.log&lt;/CODE&gt; to ensure that whether a section of code executed or not. A &lt;CODE&gt;console.log("Start Script")&lt;/CODE&gt; at the beginning will tell that script did not execute at all.&lt;/P&gt;

&lt;P&gt;You should also check out Splunk Dev Site for Splunk JS Debugging options: &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEMZ"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEMZ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 03:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329373#M21342</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-05T03:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Howto report javascript compilation errors in Simple-XML dashboard script</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329374#M21343</link>
      <description>&lt;P&gt;Thanks @niketnilay - I've certainly used that strategy to determine that a script is NOT compiling - but it's not nearly as helpful as a real syntax error from the compiler.&lt;/P&gt;

&lt;P&gt;Apologies also - I had overlooked the 404 case , it does indeed indicate in the UI with a !Warn banner.&lt;/P&gt;

&lt;P&gt;I'd missed the documentation for mvc debugger. Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 03:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329374#M21343</guid>
      <dc:creator>abramble</dc:creator>
      <dc:date>2018-03-05T03:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Howto report javascript compilation errors in Simple-XML dashboard script</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329375#M21344</link>
      <description>&lt;P&gt;@aramble, you can add &lt;CODE&gt;Feature Request&lt;/CODE&gt; at the beginning of the subject to your question and also as tag to the question. While this feature is currently unavailable hopefully soon Splunk would be able to address this. Fingers Crossed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you have Splunk Entitlement you can reach out to Splunk Support with the same.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 05:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Howto-report-javascript-compilation-errors-in-Simple-XML/m-p/329375#M21344</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-05T05:07:30Z</dc:date>
    </item>
  </channel>
</rss>

