<?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: Run universal forwarder in Docker as unprivileged account in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Run-universal-forwarder-in-Docker-as-unprivileged-account/m-p/425572#M74584</link>
    <description>&lt;P&gt;You'll need to update your Makefile and rebuild your Docker image.&lt;/P&gt;

&lt;P&gt;I've just recently answered a similar question that should help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/789462/docker-image-search-cluster-configuration-fails-in.html?childToView=790379#answer-790379"&gt;https://answers.splunk.com/answers/789462/docker-image-search-cluster-configuration-fails-in.html?childToView=790379#answer-790379&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 22:19:19 GMT</pubDate>
    <dc:creator>codebuilder</dc:creator>
    <dc:date>2019-12-17T22:19:19Z</dc:date>
    <item>
      <title>Run universal forwarder in Docker as unprivileged account</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-universal-forwarder-in-Docker-as-unprivileged-account/m-p/425571#M74583</link>
      <description>&lt;P&gt;I am trying to run the universal forwarder in OpenShift which by default doesn't allow containers to run with a privileged account.&lt;/P&gt;

&lt;P&gt;I have read other threads related to this, but none of them provide a solution.  &lt;/P&gt;

&lt;P&gt;When I run the splunk universal forwarder image like so:&lt;BR /&gt;
&lt;CODE&gt;docker run --rm -it -u 1001 -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=pwd -e SPLUNK_HOST=splunkhost:9997 -e SPLUNK_INDEX_NAME=sample splunk/universalforwarder:7.3-redhat&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I get this output:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sh: /opt/container_artifact/splunk-container.state: Permission denied&lt;BR /&gt;
ERROR: Couldn't read "/opt/splunkforwarder/etc/splunk-launch.conf" -- maybe $SPLUNK_HOME or $SPLUNK_ETC is set wrong?&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 14:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-universal-forwarder-in-Docker-as-unprivileged-account/m-p/425571#M74583</guid>
      <dc:creator>adamstortz</dc:creator>
      <dc:date>2019-08-02T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run universal forwarder in Docker as unprivileged account</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-universal-forwarder-in-Docker-as-unprivileged-account/m-p/425572#M74584</link>
      <description>&lt;P&gt;You'll need to update your Makefile and rebuild your Docker image.&lt;/P&gt;

&lt;P&gt;I've just recently answered a similar question that should help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/789462/docker-image-search-cluster-configuration-fails-in.html?childToView=790379#answer-790379"&gt;https://answers.splunk.com/answers/789462/docker-image-search-cluster-configuration-fails-in.html?childToView=790379#answer-790379&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 22:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-universal-forwarder-in-Docker-as-unprivileged-account/m-p/425572#M74584</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2019-12-17T22:19:19Z</dc:date>
    </item>
  </channel>
</rss>

