<?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: Retrieving values from config file in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176633#M10933</link>
    <description>&lt;P&gt;I personally would use a lookup table to achieve this. Place this data into a csv and import as a lookup file, create a lookup definition for it then if you like create an automatic lookup so you never need to do it again.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2015 20:34:02 GMT</pubDate>
    <dc:creator>dolivasoh</dc:creator>
    <dc:date>2015-03-13T20:34:02Z</dc:date>
    <item>
      <title>Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176632#M10932</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I have created a setup.xml file which i'm using as a custom config file for a splunk app.&lt;BR /&gt;
The setup file contains 3 settings;&lt;/P&gt;

&lt;P&gt;setting1=5&lt;BR /&gt;
setting2=40&lt;BR /&gt;
setting3=10&lt;/P&gt;

&lt;P&gt;These settings are values which I would like to use throughout my dashboards and in turn these values are used across charts, for example using them as thresholds or used as tokens etc...&lt;/P&gt;

&lt;P&gt;Now I have these inside myconf.conf who can I now retrieve them back to use within searches? is the myconf.conf file automatically imported into my app? so I can now easly treat each field as a token? for example, if I use $setting1$ would that retrieve it's value?&lt;/P&gt;

&lt;P&gt;i'm using splunk 6.2.2 and also simple xml&lt;/P&gt;

&lt;P&gt;Your help with this would be very much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 14:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176632#M10932</guid>
      <dc:creator>bmelim</dc:creator>
      <dc:date>2015-03-13T14:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176633#M10933</link>
      <description>&lt;P&gt;I personally would use a lookup table to achieve this. Place this data into a csv and import as a lookup file, create a lookup definition for it then if you like create an automatic lookup so you never need to do it again.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 20:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176633#M10933</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-03-13T20:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176634#M10934</link>
      <description>&lt;P&gt;I did think of that, but I would like users to be able to edit these values easily if they need to. &lt;BR /&gt;
Is there a way to achieve the returning of config  file values?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 21:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176634#M10934</guid>
      <dc:creator>bmelim</dc:creator>
      <dc:date>2015-03-13T21:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176635#M10935</link>
      <description>&lt;P&gt;The lookup file editor app would be a good solution to allow user to easily edit.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2015 22:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176635#M10935</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-03-13T22:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176636#M10936</link>
      <description>&lt;P&gt;Thank you, I will do that. Is it as easy as returning a token if I use a lookup file? &lt;BR /&gt;
If my field is settings1 - could I use $settings1$ to retrieve its value?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176636#M10936</guid>
      <dc:creator>bmelim</dc:creator>
      <dc:date>2015-03-16T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving values from config file</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176637#M10937</link>
      <description>&lt;P&gt;Have a look at the reference docs on lookup. Tokens aren't the real focus here. Take a look.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Lookup"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Retrieving-values-from-config-file/m-p/176637#M10937</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-03-24T19:54:15Z</dc:date>
    </item>
  </channel>
</rss>

