<?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 splunk-launch.conf not working in Installation</title>
    <link>https://community.splunk.com/t5/Installation/splunk-launch-conf-not-working/m-p/160009#M9870</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can I request, if someone can help me with below:&lt;BR /&gt;
I have installed splunk free download initial 30 days on Centos 6.5 server edition.&lt;BR /&gt;
When I start spunk with root user from init.d  somehow the variables from splunk-launch.conf are not getting set.&lt;BR /&gt;
I had to manually put spunk_home in bashrc and it is not an issue. For indexes.conf file I copied default copy from default to local. and it uses spunk_db and other environmental variables. I can set them all as well in bashrc, but that would make it more error prone because I will have to review each and every file where it is used.&lt;BR /&gt;
I was wondering why the launch config is not being used when I try starting spunk.&lt;/P&gt;

&lt;P&gt;Thanks !!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:34:48 GMT</pubDate>
    <dc:creator>goelt2000</dc:creator>
    <dc:date>2020-09-28T16:34:48Z</dc:date>
    <item>
      <title>splunk-launch.conf not working</title>
      <link>https://community.splunk.com/t5/Installation/splunk-launch-conf-not-working/m-p/160009#M9870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can I request, if someone can help me with below:&lt;BR /&gt;
I have installed splunk free download initial 30 days on Centos 6.5 server edition.&lt;BR /&gt;
When I start spunk with root user from init.d  somehow the variables from splunk-launch.conf are not getting set.&lt;BR /&gt;
I had to manually put spunk_home in bashrc and it is not an issue. For indexes.conf file I copied default copy from default to local. and it uses spunk_db and other environmental variables. I can set them all as well in bashrc, but that would make it more error prone because I will have to review each and every file where it is used.&lt;BR /&gt;
I was wondering why the launch config is not being used when I try starting spunk.&lt;/P&gt;

&lt;P&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/splunk-launch-conf-not-working/m-p/160009#M9870</guid>
      <dc:creator>goelt2000</dc:creator>
      <dc:date>2020-09-28T16:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: splunk-launch.conf not working</title>
      <link>https://community.splunk.com/t5/Installation/splunk-launch-conf-not-working/m-p/160010#M9871</link>
      <description>&lt;P&gt;You won't see values like $SPLUNK_HOME in the whole OS. They are only available within Splunk. You can run a program &lt;EM&gt;as splunk would&lt;/EM&gt; by typing &lt;CODE&gt;./splunk cmd ...&lt;/CODE&gt; in Splunk's &lt;CODE&gt;bin&lt;/CODE&gt; folder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ whereis python
/usr/bin/python ...
$ /usr/bin/python
&amp;gt;&amp;gt;&amp;gt; import os
&amp;gt;&amp;gt;&amp;gt; os.environ['SPLUNK_HOME']
KeyError: 'SPLUNK_HOME'
&amp;gt;&amp;gt;&amp;gt;
$ /opt/splunk/bin/splunk cmd /usr/bin/python
&amp;gt;&amp;gt;&amp;gt; import os
&amp;gt;&amp;gt;&amp;gt; os.environ['SPLUNK_HOME']
'/opt/splunk'
&amp;gt;&amp;gt;&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/splunk-launch-conf-not-working/m-p/160010#M9871</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2020-09-28T17:33:59Z</dc:date>
    </item>
  </channel>
</rss>

