<?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: Why does Splunk forwarder fail to keep running in Linux environment (variable in server.conf)? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470178#M16403</link>
    <description>&lt;P&gt;Hello @joshnetwolf &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;what are the last lines in the output of ./splunk start?&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;what does the env variable $INSTANCE_ID contains?&lt;/P&gt;

&lt;P&gt;After any environment variables are expanded, the server name&lt;BR /&gt;
  (if not an IPv6 address) can only contain letters, numbers, underscores,&lt;BR /&gt;
  dots, and dashes. The server name must start with a letter, number, or an&lt;BR /&gt;
  underscore.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 03 Jun 2020 05:40:29 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-06-03T05:40:29Z</dc:date>
    <item>
      <title>Why does Splunk forwarder fail to keep running in Linux environment (variable in server.conf)?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470176#M16401</link>
      <description>&lt;P&gt;Under &lt;CODE&gt;/opt/splunkforwarder/etc/system/local/server.conf&lt;/CODE&gt;, we have used the env variable &lt;CODE&gt;$INSTANCE_ID&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;[general]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;serverName = $INSTANCE_ID
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We then verified that we got the right results by using the command:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;./splunk show servername&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;This then showed the correct id we were looking for. However, when we go to start Splunk using &lt;CODE&gt;./splunk start&lt;/CODE&gt; OR &lt;CODE&gt;./splunk&lt;/CODE&gt; to restart it will then show it's started.&lt;/P&gt;
&lt;P&gt;Right after it shows it's started, I attempt to verify it's running by using &lt;CODE&gt;./splunk status&lt;/CODE&gt;. This shows us that the service did not in fact start, and it still shows &lt;CODE&gt;splunkd is not running&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Why is this?&lt;/P&gt;
&lt;P&gt;We verified that if we hard code the result into the servername in &lt;CODE&gt;server.conf&lt;/CODE&gt;, the service does in fact start. &lt;BR /&gt;But, for some reason, by using the env variable something is keeping Splunk from running.&lt;/P&gt;
&lt;P&gt;Any help on this would be great!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 21:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470176#M16401</guid>
      <dc:creator>joshnetwolf</dc:creator>
      <dc:date>2020-06-06T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk forwarder fail to keep running in Linux environment (variable in server.conf)?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470177#M16402</link>
      <description>&lt;P&gt;Update:&lt;BR /&gt;
If we disable boot-start I found that we can then start the service with no issues. But if I where to enable boot-start after the splunk service is restarted and then preform a ./splunk restart it will fail to restart and will remain offline until you disable boot-start again and start the service.&lt;/P&gt;

&lt;P&gt;Other Details:&lt;BR /&gt;
Splunk forwarder version: splunkforwarder-7.2.3-06d57c595b80-linux-2.6-x86_64&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 21:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470177#M16402</guid>
      <dc:creator>joshnetwolf</dc:creator>
      <dc:date>2020-06-02T21:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk forwarder fail to keep running in Linux environment (variable in server.conf)?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470178#M16403</link>
      <description>&lt;P&gt;Hello @joshnetwolf &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;what are the last lines in the output of ./splunk start?&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;what does the env variable $INSTANCE_ID contains?&lt;/P&gt;

&lt;P&gt;After any environment variables are expanded, the server name&lt;BR /&gt;
  (if not an IPv6 address) can only contain letters, numbers, underscores,&lt;BR /&gt;
  dots, and dashes. The server name must start with a letter, number, or an&lt;BR /&gt;
  underscore.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 03 Jun 2020 05:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/470178#M16403</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-06-03T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk forwarder fail to keep running in Linux environment (variable in server.conf)?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/529728#M18247</link>
      <description>&lt;P&gt;Ever figure this out&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/64709"&gt;@joshnetwolf&lt;/a&gt;&amp;nbsp;? I was just hitting the same issue now trying to implement the same w 7.3.x&lt;/P&gt;&lt;P&gt;Docs for 7.3 vs 8.x are the same so - but havent tested it with 8.x install yet.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 11:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-does-Splunk-forwarder-fail-to-keep-running-in-Linux/m-p/529728#M18247</guid>
      <dc:creator>tsizzlebuffet</dc:creator>
      <dc:date>2020-11-17T11:57:28Z</dc:date>
    </item>
  </channel>
</rss>

