<?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 enable Splunk Forwarder on boot FreeBSD display &amp;quot;&amp;quot;Can't access &amp;quot;/etc/rc.conf&amp;quot;: No such file or directory&amp;quot; error? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317200#M59280</link>
    <description>&lt;P&gt;Did you run that command as root?  I can't imagine /etc/rc.conf being absent on a FreeBSD instance, so the most likely culprit would tend to be permissions.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 18:07:50 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2017-05-25T18:07:50Z</dc:date>
    <item>
      <title>Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317199#M59279</link>
      <description>&lt;P&gt;Running a vm firewall which is running on FreeBSD. I installed the Splunk universal forwarder, and it can run just fine and forward logs to my Splunk Light instance. &lt;/P&gt;

&lt;P&gt;However, when I try to enable splunk forwarder to start on boot "sudo splunk enable boot-start", it returns the error: "Can't access "/etc/rc.conf": No such file or directory." I did find /etc/rc.d/splunk, which says its the "init script for Splunk" and is "generated by 'splunk enable boot-start'."&lt;/P&gt;

&lt;P&gt;Is something borked with my install?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 22:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317199#M59279</guid>
      <dc:creator>Willman42</dc:creator>
      <dc:date>2017-05-24T22:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317200#M59280</link>
      <description>&lt;P&gt;Did you run that command as root?  I can't imagine /etc/rc.conf being absent on a FreeBSD instance, so the most likely culprit would tend to be permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317200#M59280</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-05-25T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317201#M59281</link>
      <description>&lt;P&gt;Confirmation there is no rc.conf file:&lt;/P&gt;

&lt;P&gt;root@OPNsense:~ # ls -l /etc | grep rc&lt;BR /&gt;
-rw-r--r--  1 root  wheel       176 May 20 19:38 csh.cshrc&lt;BR /&gt;
-rw-r--r--  1 root  wheel      5109 Mar 29 01:30 rc&lt;BR /&gt;
-rw-r--r--  1 root  wheel      4543 Mar 26 09:25 rc.bsdextended&lt;BR /&gt;
drwxr-xr-x  3 root  wheel       512 May  5 19:50 rc.conf.d&lt;BR /&gt;
drwxr-xr-x  2 root  wheel      3072 May 24 18:06 rc.d&lt;BR /&gt;
-rw-r--r--  1 root  wheel     18561 Mar 26 09:25 rc.firewall&lt;BR /&gt;
-rw-r--r--  1 root  wheel     12791 Mar 26 09:25 rc.initdiskless&lt;BR /&gt;
-rwxr-xr-x  1 root  wheel      2139 Mar 26 09:25 rc.resume&lt;BR /&gt;
-rw-r--r--  1 root  wheel      3515 Mar 29 01:30 rc.shutdown&lt;BR /&gt;
-rw-r--r--  1 root  wheel     49880 Mar 26 09:25 rc.subr&lt;BR /&gt;
-rwxr-xr-x  1 root  wheel      2267 Mar 26 09:25 rc.suspend&lt;BR /&gt;
root@OPNsense:~ #&lt;/P&gt;

&lt;P&gt;Maybe OPNsense removed it in their install image? I don't see why they'd do that though.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317201#M59281</guid>
      <dc:creator>Willman42</dc:creator>
      <dc:date>2017-05-25T18:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317202#M59282</link>
      <description>&lt;P&gt;Ahhh, well, I can't comment on OPNsense.  You can use files in rc.conf.d instead of putting things in rc.conf.  It &lt;EM&gt;probably&lt;/EM&gt; won't break things to just create rc.conf and let splunk put its "_enable" line in there.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 18:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317202#M59282</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-05-25T18:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317203#M59283</link>
      <description>&lt;P&gt;Ok, what should be in the rc.conf (or conf.c) file? There exists no splunk file in either directory currently, so first I'd like to create the needed file in conf.d and see if that works, just to retain the existing file structure.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317203#M59283</guid>
      <dc:creator>Willman42</dc:creator>
      <dc:date>2017-05-25T19:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317204#M59284</link>
      <description>&lt;P&gt;rc.conf can be empty, so I'd try creating an empty file first.&lt;/P&gt;

&lt;P&gt;Note: I'm not suggesting this is valid in OPNsense.  Please consider all of this at your own risk.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317204#M59284</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-05-25T20:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317205#M59285</link>
      <description>&lt;P&gt;I understand. After creating the file, running "splunk enable boot-start" worked, said the splunk startup script was created in /etc/rc.d, and I noticed that the /etc/rc.conf file contained the following:&lt;/P&gt;

&lt;P&gt;"splunk_enable="YES""&lt;/P&gt;

&lt;P&gt;However, after rebooting, checking splunk status returned the following:&lt;/P&gt;

&lt;P&gt;splunkd 8578 was not running.&lt;BR /&gt;
Stopping splunk helpers...&lt;/P&gt;

&lt;P&gt;Done.&lt;BR /&gt;
Stopped helpers.&lt;BR /&gt;
Removing stale pid file... done.&lt;/P&gt;

&lt;P&gt;Could this be a problem with the FreeBSD version of the universal forwarder client?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 21:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317205#M59285</guid>
      <dc:creator>Willman42</dc:creator>
      <dc:date>2017-05-25T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317206#M59286</link>
      <description>&lt;P&gt;Try giving it another reboot, since it seems there was a stale pidfile that time.&lt;/P&gt;

&lt;P&gt;However, even if it starts this time, it doesn't mean things are "ok" with splunk not starting on boot due to a stale pidfile.&lt;/P&gt;

&lt;P&gt;I haven't ever had issues with the FreeBSD UF starting on boot, but that certainly doesn't mean there aren't bugs.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 21:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317206#M59286</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-05-25T21:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does enable Splunk Forwarder on boot FreeBSD display ""Can't access "/etc/rc.conf": No such file or directory" error?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317207#M59287</link>
      <description>&lt;P&gt;the file doesn't exist. do this to create it&lt;/P&gt;

&lt;P&gt;touch /etc/rc.conf&lt;/P&gt;

&lt;P&gt;then run then enable boot-start command&lt;/P&gt;

&lt;P&gt;this will actually create the startup script in /etc/rc.d/splunk and in /etc/rc.conf you will now see, splunk_enable="YES" &lt;/P&gt;

&lt;P&gt;If it doesn't auto start, copy the splunk_enable line from /etc/rc.conf into /etc/rc.conf.d/splunk&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 01:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-enable-Splunk-Forwarder-on-boot-FreeBSD-display-quot/m-p/317207#M59287</guid>
      <dc:creator>nhdpotter</dc:creator>
      <dc:date>2018-10-23T01:18:54Z</dc:date>
    </item>
  </channel>
</rss>

