<?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: Global dashboard.js in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426385#M42483</link>
    <description>&lt;P&gt;I do not want to add it manually to every other dashboard I want to use one everywhere if possible.  Else I could also just put it in the static directory of each app.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 09:19:09 GMT</pubDate>
    <dc:creator>sboogaar</dc:creator>
    <dc:date>2019-03-11T09:19:09Z</dc:date>
    <item>
      <title>Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426382#M42480</link>
      <description>&lt;P&gt;Is it possible to make a dashboard.js for all pages (global)?&lt;BR /&gt;
I want to run a specific script that adds a machine id to the header on every page in the splunk environment.&lt;BR /&gt;
The script works perfectly at the moment for a specific app but im not able to run it on every page.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 11:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426382#M42480</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2019-03-08T11:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426383#M42481</link>
      <description>&lt;P&gt;@sboogaar You can refernce the script using script=":.js" in your form or dashboard tag.&lt;BR /&gt;
For example if your js is in search app and you want to reference in some other app, use this in the other app&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard script="search:dashboard.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426383#M42481</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-03-08T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426384#M42482</link>
      <description>&lt;P&gt;You can use a single JavaScript file at the app level. Place a file named dashboard.js in $SPLUNK_HOME/etc/apps/Splunk_app/appserver/static Every dashboard in your app will execute this JavaScript without any modifications to the actual dashboard. &lt;BR /&gt;
To make changes global you need to make changes here:-&lt;BR /&gt;
$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/&lt;/P&gt;

&lt;P&gt;Need to be careful when you make changes to global file.&lt;/P&gt;

&lt;P&gt;you can find more help here:-&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Module/Simplecustomizations" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Module/Simplecustomizations&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426384#M42482</guid>
      <dc:creator>saurabh009</dc:creator>
      <dc:date>2020-09-29T23:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426385#M42483</link>
      <description>&lt;P&gt;I do not want to add it manually to every other dashboard I want to use one everywhere if possible.  Else I could also just put it in the static directory of each app.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 09:19:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426385#M42483</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2019-03-11T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426386#M42484</link>
      <description>&lt;P&gt;$SPLUNK_HOME/etc/apps/my_app_name/appserver/static  is exactly how I have it, but I want it everywhere/global.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426386#M42484</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2020-09-29T23:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard.js</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426387#M42485</link>
      <description>&lt;P&gt;@saurabh009  How do you apply changes on a distributed environment?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 16:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Global-dashboard-js/m-p/426387#M42485</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2019-03-12T16:58:55Z</dc:date>
    </item>
  </channel>
</rss>

