<?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: How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160988#M32638</link>
    <description>&lt;P&gt;The forum has removed all the back slashes from my post....&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2014 08:50:47 GMT</pubDate>
    <dc:creator>steveo69</dc:creator>
    <dc:date>2014-07-29T08:50:47Z</dc:date>
    <item>
      <title>How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160987#M32637</link>
      <description>&lt;P&gt;Using the Universal Forwarder I need to monitor a folder, so I am editing the inputs.conf file.&lt;/P&gt;

&lt;P&gt;However, in Windows XP / Windows 2003 the folder is located in :&lt;/P&gt;

&lt;P&gt;C:\Documents and Settings\All Users&lt;/P&gt;

&lt;P&gt;In Windows 7 and later it is located in C:\ProgramData&lt;/P&gt;

&lt;P&gt;I have tried to use the Windows environment variable %AllUsersProfile% but in the splunkd log filer I get an error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;TailingProcessor - Parsing configuration stanza: monitor://%allusersprofile%\Application Data\myfolder.&lt;BR /&gt;
TailingProcessor - Input stanza path, '%allusersprofile%\Application Data\myfolder\' is not absolute.  This is a configuration error and may not work / break things.  Change this path to an absolute path.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So how can I use an environment variable or change the config so that it works on bother older and newer Windows OS?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160987#M32637</guid>
      <dc:creator>steveo69</dc:creator>
      <dc:date>2014-07-29T08:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160988#M32638</link>
      <description>&lt;P&gt;The forum has removed all the back slashes from my post....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 08:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160988#M32638</guid>
      <dc:creator>steveo69</dc:creator>
      <dc:date>2014-07-29T08:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160989#M32639</link>
      <description>&lt;P&gt;See this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://"&gt;http://answers.splunk.com/answers/2583/monitor-doesnt-work-with-env-variable-in-inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 09:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160989#M32639</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-29T09:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160990#M32640</link>
      <description>&lt;P&gt;Thanks for the link strive - thats exactly what I needed.    &lt;/P&gt;

&lt;P&gt;One thing which &lt;EM&gt;fooled&lt;/EM&gt; me - not being a programmer of any type or background - was that the environment variable I wanted to use I understood to be %variable% - however in the conf file it seems you need to use the format $variable&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 13:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160990#M32640</guid>
      <dc:creator>steveo69</dc:creator>
      <dc:date>2014-07-29T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure universal forwarder or use environment variables to monitor folder in different Windows OS versions?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160991#M32641</link>
      <description>&lt;P&gt;Good to know that it worked. Dont forget to cast your vote &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 16:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-universal-forwarder-or-use-environment/m-p/160991#M32641</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-07-29T16:04:22Z</dc:date>
    </item>
  </channel>
</rss>

