<?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 read application variable into xml in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56240#M2960</link>
    <description>&lt;P&gt;in splunk is there a way to set an application variable in any of the .conf files that is accessible in the xml file?  if so please provide and example&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2012 13:44:18 GMT</pubDate>
    <dc:creator>fresned</dc:creator>
    <dc:date>2012-12-06T13:44:18Z</dc:date>
    <item>
      <title>read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56240#M2960</link>
      <description>&lt;P&gt;in splunk is there a way to set an application variable in any of the .conf files that is accessible in the xml file?  if so please provide and example&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56240#M2960</guid>
      <dc:creator>fresned</dc:creator>
      <dc:date>2012-12-06T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56241#M2961</link>
      <description>&lt;P&gt;Could you give an example of what you are trying to achieve or would like to?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56241#M2961</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-06T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56242#M2962</link>
      <description>&lt;P&gt;I would like to set this up as a variable rather than a hard coded value.&lt;BR /&gt;
&lt;MODULE name="TimeRangePicker"&gt;&lt;BR /&gt;
          layoutPanel="panel_row1_col1"          autorun="True"&amp;gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="selected" /&gt;Last 4 hours&lt;BR /&gt;
    &lt;PARAM name="searchWhenChanged" /&gt;True&lt;BR /&gt;
I would like to change &lt;PARAM name="selected" /&gt;Last 4 hours to be something like&lt;BR /&gt;
                       &lt;PARAM name="selected" /&gt;$VARIABLENAME$  where $VARIABLENAME$ is set &lt;BR /&gt;
    in one of the .confg files. So in one place I could set all the xml files to be &lt;BR /&gt;
    $VARIABLENAME$ ='Last 2 hours' for example.&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 13:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56242#M2962</guid>
      <dc:creator>fresned</dc:creator>
      <dc:date>2012-12-06T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56243#M2963</link>
      <description>&lt;P&gt;I think you are looking for &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/admin/Timesconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/admin/Timesconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In this conf you can define your own time periods/ranges to use within Splunk. You define this within $SPLUNK_HOME/etc/apps/APPNAME/local/&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56243#M2963</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-06T14:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56244#M2964</link>
      <description>&lt;P&gt;I may have chose a bad example. I was looking anything I may want to use as a variable, not just a time as an example.  I will try and see it this will do what I need.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56244#M2964</guid>
      <dc:creator>fresned</dc:creator>
      <dc:date>2012-12-06T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56245#M2965</link>
      <description>&lt;P&gt;What sort of variable do you mean then? If its not time related then no, there isn't really any way to put a value in a file and have it interpreted in the XML. To do this you would use something like the ValueSetter in sideview utils or just type it in for each XML. I'd be more interested to know what use-cases (e.g. what sort of variables) you'd want to share across many dashboards.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56245#M2965</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-06T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56246#M2966</link>
      <description>&lt;P&gt;in the XML files I have a search there are hard coded values every time the name of an item gets updated, I find I have to go through a number of xml files and updated the value each time.  So was look for a way not to have to go and update each file.  so I have the following;sourcetype=sourcename TestType="Order" there are 12 xml files that have TestType="Order" and when the name changed to "Orders" I have to go and change each of the searches.  where if it was a variable I would only need to update it in one place one time&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 19:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56246#M2966</guid>
      <dc:creator>fresned</dc:creator>
      <dc:date>2012-12-06T19:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: read application variable into xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56247#M2967</link>
      <description>&lt;P&gt;Have you tried creating eventtypes or macros to do the same thing? Then you only need to edit them in the manager just the once&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 20:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/read-application-variable-into-xml/m-p/56247#M2967</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-12-06T20:02:48Z</dc:date>
    </item>
  </channel>
</rss>

