<?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 Syslog-ng as non -root user in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18161#M2453</link>
    <description>&lt;P&gt;Hi, this should work, but it's possible that you hit a bug. Which version of syslog-ng are you using?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2016 09:17:19 GMT</pubDate>
    <dc:creator>frobert</dc:creator>
    <dc:date>2016-02-15T09:17:19Z</dc:date>
    <item>
      <title>Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18156#M2448</link>
      <description>&lt;P&gt;I need to run splunk as non-root user as per security policy of the customer. The challenge I have faced is with Syslog-ng.&lt;BR /&gt;&lt;BR /&gt;
if Syslog-ng runs as root, Splunk (running as non-root) cannot reald the logs collected sittign in var\log (owner is root)&lt;/P&gt;

&lt;P&gt;So the idea is to run syslog-ng as non-root user (let's say the user that is running splunk) which should allow splunk running  with the same non-root user to read the syslog files.&lt;/P&gt;

&lt;P&gt;is this feasible? anyone has seen/done this before?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 12:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18156#M2448</guid>
      <dc:creator>jnassar</dc:creator>
      <dc:date>2012-04-04T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18157#M2449</link>
      <description>&lt;P&gt;&lt;A href="http://www.balabit.com/wiki/syslog-ng-faq-non-root"&gt;http://www.balabit.com/wiki/syslog-ng-faq-non-root&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18157#M2449</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-04-04T13:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18158#M2450</link>
      <description>&lt;P&gt;Not really familiar with syslog-ng, but if you use &lt;CODE&gt;logrotate&lt;/CODE&gt; for rotating logs, you can set file permissions on the logs each time they rotate to 640 (&lt;CODE&gt;rw-r--r--&lt;/CODE&gt;) with the owner of &lt;CODE&gt;syslog-ng&lt;/CODE&gt; (or whatever account you use) and group of &lt;CODE&gt;splunk&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;In your &lt;CODE&gt;logrotate.d&lt;/CODE&gt;-scripts you could add&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;create 640 syslog-ng splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 13:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18158#M2450</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-04-04T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18159#M2451</link>
      <description>&lt;P&gt;i think the better option is of course to not run things as root when they dont need to, better yet, non-root in chroot environment is ideal. start syslog-ng per the link i provided. i will also suggest to run syslog-ng not as same uid as splunkd. you can configure syslog-ng.conf with destination owner,group,perm settings for the files. files should be owned by syslog, grouped with splunkd uid, and perms 640. so, you can run syslog-ng as one uid, splunkd as another uid, and you can have syslog-ng write files using yet another uid, etc. do not rely on logrotate to handle owner,group,perm.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18159#M2451</guid>
      <dc:creator>cvajs</dc:creator>
      <dc:date>2012-04-04T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18160#M2452</link>
      <description>&lt;P&gt;,This recommendation of running as non-root here &lt;A href="https://www.balabit.com/wiki/syslog-ng-faq-non-root"&gt;https://www.balabit.com/wiki/syslog-ng-faq-non-root&lt;/A&gt; doesn't seem to help.  I'm getting the following permissions error(s)&lt;/P&gt;

&lt;P&gt;syslog-ng: Error setting capabilities, capability management disabled; error='Operation not permitted'&lt;BR /&gt;
Error binding socket; addr='AF_UNIX(/dev/log)', error='Address already in use (98)'&lt;BR /&gt;
Error initializing message pipeline;&lt;/P&gt;

&lt;P&gt;How are people getting past this?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 20:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18160#M2452</guid>
      <dc:creator>ryankoss</dc:creator>
      <dc:date>2016-02-13T20:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18161#M2453</link>
      <description>&lt;P&gt;Hi, this should work, but it's possible that you hit a bug. Which version of syslog-ng are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 09:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18161#M2453</guid>
      <dc:creator>frobert</dc:creator>
      <dc:date>2016-02-15T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18162#M2454</link>
      <description>&lt;P&gt;I'm using syslog-ng version 3.5.6&lt;/P&gt;

&lt;P&gt;sudo /usr/sbin/syslog-ng --version&lt;BR /&gt;
syslog-ng 3.5.6&lt;BR /&gt;
Installer-Version: 3.5.6&lt;BR /&gt;
Revision: &lt;BR /&gt;
Compile-Date: Aug 21 2014 18:17:06&lt;BR /&gt;
Available-Modules: basicfuncs,cryptofuncs,csvparser,afsocket-notls,confgen,afsocket-tls,system-source,dbparser,afprog,linux-kmsg-format,afsocket,affile,afuser,afstomp,syslogformat&lt;/P&gt;

&lt;P&gt;Is there anything special I need to have in my syslog-ng.conf to make this work?  I basically have the default with some filters and two destinations that I have added for particular facilities.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18162#M2454</guid>
      <dc:creator>ryankoss</dc:creator>
      <dc:date>2016-02-15T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Run Syslog-ng as non -root user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18163#M2455</link>
      <description>&lt;P&gt;Another possibility is thaty the user doesn't have write permission to /dev, so it cannot remove the stale log socket, which causes the bind to fail.&lt;/P&gt;

&lt;P&gt;You can create the log socket somewhere else (for example, under /var somewhere) and point a symlink to it from /dev.&lt;/P&gt;

&lt;P&gt;Then you can give permissions to user to the directory where the log socket resides.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Run-Syslog-ng-as-non-root-user/m-p/18163#M2455</guid>
      <dc:creator>frobert</dc:creator>
      <dc:date>2016-02-15T12:08:48Z</dc:date>
    </item>
  </channel>
</rss>

