<?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: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97595#M20341</link>
    <description>&lt;P&gt;Are you sure you want to exist "site.py"? Or, do you not broken?&lt;BR /&gt;
A similar message is displayed if you remove the "site.py" from "\LIB".&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2013 01:17:39 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-07-23T01:17:39Z</dc:date>
    <item>
      <title>splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97589#M20335</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
   I installed Splunk on my laptop (Windows 7 64 bit) and things worked fine . I stopped the Windows service and was playing around with some Python modules&lt;/P&gt;

&lt;P&gt;Now i am able to start Splunkd from the command line IF I set the environment variables SPLUNK_HOME, SPLUNK_DB,PYTHONHOME . But if I start as a service it does not work (i.e. net start splunkd ) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;How do I set the enviroment variables ?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Haro&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97589#M20335</guid>
      <dc:creator>hvram</dc:creator>
      <dc:date>2020-09-28T14:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97590#M20336</link>
      <description>&lt;P&gt;Do you mean you're trying to run splunkd.exe instead of splunk.exe? Because splunkd.exe is not meant to be executed directly from the command line.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 06:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97590#M20336</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-17T06:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97591#M20337</link>
      <description>&lt;P&gt;No I am trying to run splunkd as a service . If I run from command line I figured out that I need to set certain environment variables . I would like to set these variables and then run as a service . The reason i would like to do this is because I can run splunkd from a command line but I cannot run splunkweb&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 07:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97591#M20337</guid>
      <dc:creator>hvram</dc:creator>
      <dc:date>2013-07-17T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97592#M20338</link>
      <description>&lt;P&gt;You're saying again though that you're running "splunkd from a command line" - you shouldn't be running splunkd directly at all, ever, because you need to run splunk which takes care of setting up the environment variables and a bunch of other things before invoking splunkd.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 07:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97592#M20338</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-17T07:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97593#M20339</link>
      <description>&lt;P&gt;I understand that I should not be doing it .  But as I mentioned :&lt;BR /&gt;
    I installed a couple of Python modules which caused changes to PYTHONPATH etc&lt;BR /&gt;
So I have been trying to debug why it stopped and figured these .&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97593#M20339</guid>
      <dc:creator>hvram</dc:creator>
      <dc:date>2013-07-17T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97594#M20340</link>
      <description>&lt;P&gt;This is the error that I see in the logs&lt;/P&gt;

&lt;P&gt;07-17-2013 15:12:23.681 +0530 ERROR loader -   File "D:\Splunk\Python-2.7\Lib\site-packages\site.py", line 74, ..&lt;BR /&gt;
07-17-2013 15:12:23.681 +0530 ERROR loader -     raise ImportError("Couldn't find the real 'site' module")&lt;BR /&gt;
07-17-2013 15:12:23.681 +0530 ERROR loader - ImportError: Couldn't find the real 'site' module&lt;/P&gt;

&lt;P&gt;I can solve this problem by starting splunkd from the command line by setting SPLUNK_HOME, SPLUNKDB , PYTHONHOME and then start splunkd  . The logs say that splunk has started&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97594#M20340</guid>
      <dc:creator>hvram</dc:creator>
      <dc:date>2013-07-17T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97595#M20341</link>
      <description>&lt;P&gt;Are you sure you want to exist "site.py"? Or, do you not broken?&lt;BR /&gt;
A similar message is displayed if you remove the "site.py" from "\LIB".&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2013 01:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97595#M20341</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-07-23T01:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: splunkd.exe  environment variables SPLUNK_HOME PYTHONPATH etc</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97596#M20342</link>
      <description>&lt;P&gt;It sounds as if you corrupted the Splunk install a bit. I'd uninstall / reinstall to have those variables restored. You can also start splunk like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;cd C:&lt;BR /&gt;
cd C:\Program Files\Splunk\bin&lt;BR /&gt;
splunk.exe disable webserver&lt;BR /&gt;
splunk.exe start&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This should turn off the splunkweb, and then start Splunk correctly. Running splunkd.exe is not an option. If it still fails with a Python Error, add the Splunk Path back to the Environment Variable. &lt;CODE&gt;&lt;A href="http://www.itechtalk.com/thread3595.html" target="test_blank"&gt;http://www.itechtalk.com/thread3595.html&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2013 13:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunkd-exe-environment-variables-SPLUNK-HOME-PYTHONPATH-etc/m-p/97596#M20342</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-07-23T13:30:53Z</dc:date>
    </item>
  </channel>
</rss>

