<?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: Referencing global settings inside SimpleXML? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380951#M95683</link>
    <description>&lt;P&gt;@mlstomasevic If you want to access configurations which are stored from the configuration tab OR input tab then you can use &lt;CODE&gt;| rest&lt;/CODE&gt; search command. Rest command will give you access to all configured values. &lt;CODE&gt;globalConfig.json&lt;/CODE&gt; is not the file where configuration stored. There are conf files which store the configuration stanzas.&lt;/P&gt;

&lt;P&gt;Please check below links to know more about conf files.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Configurationfile"&gt;https://docs.splunk.com/Splexicon:Configurationfile&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Listofconfigurationfiles"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Listofconfigurationfiles&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Configurationfilestructureandsyntax"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Configurationfilestructureandsyntax&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Well, if you have created a dashboard in AOB generated TA then make sure your configuration pages storing configurations. Then after you can use &lt;CODE&gt;| rest&lt;/CODE&gt; search command to access key-values.&lt;/P&gt;

&lt;P&gt;Try: &lt;CODE&gt;| rest /services/configs/conf-myapp&lt;/CODE&gt; (or optionally, constrain the app and user: &lt;CODE&gt;| rest /servicesNS/admin/myapp/configs/conf-myapp&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;You can find more using the below links.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Rest"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Kindly let know for further assistance. &lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 05:11:19 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2019-02-14T05:11:19Z</dc:date>
    <item>
      <title>Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380943#M95675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am looking for a way to access one of the global settings parameters directly from the simplexml and to be rendered on the dashboard. For example, &lt;CODE&gt;globalConfig.json&lt;/CODE&gt; stores a couple of fields that I use to store application specific data, and would be great if I could render this data on the dashboard as well. I am familiar with the &lt;CODE&gt;$env&lt;/CODE&gt; but I can't really find how to access anything that is stored in the global settings file. Is this even possible? Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 09:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380943#M95675</guid>
      <dc:creator>mlstomasevic</dc:creator>
      <dc:date>2019-02-13T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380944#M95676</link>
      <description>&lt;P&gt;@mlstomasevic &lt;/P&gt;

&lt;P&gt;We can help if you share your app details. Like it is from splunk base or your custom app.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 11:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380944#M95676</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-13T11:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380945#M95677</link>
      <description>&lt;P&gt;It is a custom app. Do you need more details?  &lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 11:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380945#M95677</guid>
      <dc:creator>mlstomasevic</dc:creator>
      <dc:date>2019-02-13T11:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380946#M95678</link>
      <description>&lt;P&gt;Yes please.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 11:54:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380946#M95678</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-13T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380947#M95679</link>
      <description>&lt;P&gt;I'm just getting started with Splunk, but basically I created a dummy app through Add-on builder, and was wondering if there's a way to access App's Configuration values inside the templates? For example, by default there is a Add-on Settings tab on the configuration page for the App, and I was wondering if there's a way to access those values inside the template? Basically I want to access global config value from the template.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 12:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380947#M95679</guid>
      <dc:creator>mlstomasevic</dc:creator>
      <dc:date>2019-02-13T12:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380948#M95680</link>
      <description>&lt;P&gt;@mlstomasevic&lt;BR /&gt;
&lt;CODE&gt;globalConfig.json&lt;/CODE&gt; is AOB generated files with a single control to different page/tab configurations. And I found only &lt;CODE&gt;base.html&lt;/CODE&gt; file in the initial AOB generated TA. Do you want to access globalconfig.json in this template file? &lt;CODE&gt;/SPLUNK_HOME/etc/apps/YOUR_APP/appserver/templates/base.html&lt;/CODE&gt;. If yes, then may I know the purpose of doing this? Bcoz, &lt;CODE&gt;base.html&lt;/CODE&gt; is designed in such manner which will load other supporting javascript form &lt;CODE&gt;appserver/static/js/build/&lt;/CODE&gt; which is responsible for creating input tabs and configuration tab with all functionalities using &lt;CODE&gt;globalConfig.json&lt;/CODE&gt;. Any changes in this file may cause UI issue.&lt;BR /&gt;&lt;BR /&gt;
If you have UI related requirement then you can play with globalConfig.json by referring already implemented elements in the same file.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 14:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380948#M95680</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-13T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380949#M95681</link>
      <description>&lt;P&gt;Actually, I just want to display a value from globalConfig.json inside one of the dashboards, that's it. Not change it any way.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 14:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380949#M95681</guid>
      <dc:creator>mlstomasevic</dc:creator>
      <dc:date>2019-02-13T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380950#M95682</link>
      <description>&lt;P&gt;@kamlesh_vaghela Let me correct myself. I thought that I need to access &lt;CODE&gt;globalConfig.json&lt;/CODE&gt; because I believed that global conf values are stored there. What I really need to display inside dashboard template is just the Add-on parameter field values for an App, that Add-on builder offers to configure. I guess Splunk store those as key-value pairs somewhere.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380950#M95682</guid>
      <dc:creator>mlstomasevic</dc:creator>
      <dc:date>2019-02-13T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing global settings inside SimpleXML?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380951#M95683</link>
      <description>&lt;P&gt;@mlstomasevic If you want to access configurations which are stored from the configuration tab OR input tab then you can use &lt;CODE&gt;| rest&lt;/CODE&gt; search command. Rest command will give you access to all configured values. &lt;CODE&gt;globalConfig.json&lt;/CODE&gt; is not the file where configuration stored. There are conf files which store the configuration stanzas.&lt;/P&gt;

&lt;P&gt;Please check below links to know more about conf files.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Configurationfile"&gt;https://docs.splunk.com/Splexicon:Configurationfile&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Listofconfigurationfiles"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Admin/Listofconfigurationfiles&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Configurationfilestructureandsyntax"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Configurationfilestructureandsyntax&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Well, if you have created a dashboard in AOB generated TA then make sure your configuration pages storing configurations. Then after you can use &lt;CODE&gt;| rest&lt;/CODE&gt; search command to access key-values.&lt;/P&gt;

&lt;P&gt;Try: &lt;CODE&gt;| rest /services/configs/conf-myapp&lt;/CODE&gt; (or optionally, constrain the app and user: &lt;CODE&gt;| rest /servicesNS/admin/myapp/configs/conf-myapp&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;You can find more using the below links.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Rest"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Rest&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Kindly let know for further assistance. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 05:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-global-settings-inside-SimpleXML/m-p/380951#M95683</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-14T05:11:19Z</dc:date>
    </item>
  </channel>
</rss>

