<?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: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248385#M47843</link>
    <description>&lt;P&gt;@koshyk  It would be great is you could find an answer here and try it out.  If you do find an answer please select the answer you like.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2016 18:27:55 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2016-11-03T18:27:55Z</dc:date>
    <item>
      <title>How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248378#M47836</link>
      <description>&lt;P&gt;I have a Splunk indexer cluster that is using a service account (non-root) to start Splunk. How do I get the OS logs, like /var/log/messages, /var/log/secure etc... into the cluster indexes? I know that I could stream this to a syslog server and grab it there, but is there an easier way? &lt;/P&gt;

&lt;P&gt;Any thoughts are welcome!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248378#M47836</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2016-10-14T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248379#M47837</link>
      <description>&lt;P&gt;The OS logs that you want to collect is from splunk cluster server only OR all other linux servers in your company?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248379#M47837</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-14T18:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248380#M47838</link>
      <description>&lt;P&gt;three ways that I know of.&lt;/P&gt;

&lt;P&gt;1) chmod -r 777 the log directory&lt;BR /&gt;
2) add the splunk user to the wheel or root group&lt;BR /&gt;
3) chown -R root:SplunkGroup /var/log/&lt;/P&gt;

&lt;P&gt;Hope this helps?  Don't know there may be a more restrictive way to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248380#M47838</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2016-10-14T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248381#M47839</link>
      <description>&lt;P&gt;We faced the same issue. Assuming "splunk" have read access to the OS logs, what we have done is using Splunk_TA_nix. Put into the "local" of this app, with what files you want to collect by adding the paragraph and putting disable = false (Most of things are already part of TA_nix)&lt;/P&gt;

&lt;P&gt;For different layers, enable Splunk_TA_nix in below fashion.&lt;BR /&gt;
- For Splunk Forwarders push using deployment-server. It goes into $SPLUNK_HOME/etc/apps of forwarders.&lt;BR /&gt;
- Copy and restart Splunk_TA_nix into $SPLUNK_HOME/etc/apps for deployment-server,&lt;BR /&gt;
- Copy and restart Splunk_TA_nix into $SPLUNK_HOME/etc/apps for cluster master,&lt;BR /&gt;
- For clustered Search Heads,  package into  $SPLUNK_HOME/shcluster/etc/apps and push to Search Members. In search members, it will be merged into "default", but works.&lt;BR /&gt;
- For clustered Indexers, copy Splunk_TA_nix using cluster master via master-apps. This goes into "slave-apps" of Indexer slaves and works perfectly.&lt;/P&gt;

&lt;P&gt;If you enable Splunk_TA_nix, then you can start colllecting every information about your Splunk Infrastructure/OS&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248381#M47839</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-29T11:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248382#M47840</link>
      <description>&lt;P&gt;I want to collect OS logs from only the spunk servers themselves, not the forwarders. The forwarders is easy as the univfwd runs as admin on all platforms, its the spunk servers I am concerned about. &lt;BR /&gt;
Changing the log dir permissions won't work (I do not believe) because when logrotate runs it will create the files with orig permissions. &lt;/P&gt;

&lt;P&gt;I think my best bet is going to be to stream the logs to a remote syslog server!?!?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2016 21:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248382#M47840</guid>
      <dc:creator>brent_weaver</dc:creator>
      <dc:date>2016-10-15T21:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248383#M47841</link>
      <description>&lt;P&gt;My colleague Matt Uebel gave a talk at .conf that covers this topic. His materials are in his git repo at &lt;A href="https://github.com/MattUebel/splunk_UF_hardening"&gt;https://github.com/MattUebel/splunk_UF_hardening&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2016 13:41:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248383#M47841</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2016-10-16T13:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248384#M47842</link>
      <description>&lt;P&gt;@starcher thanks for the link to github.  I went to this talk and I agree with Matt.  In slide #13 he basicly put in what I had said above.  Matt said&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Create a “log reading” group and add the spunk user to it, or simply change group ownership to splunk&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;groupadd syslog&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;chown -R :syslog /var/log&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;chmod -R g+s /var/log&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;usermod -a -G syslog splunk&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 18:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248384#M47842</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2016-11-03T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Linux OS logs off a Splunk server, where Splunk is started as a non root account, to index in an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248385#M47843</link>
      <description>&lt;P&gt;@koshyk  It would be great is you could find an answer here and try it out.  If you do find an answer please select the answer you like.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 18:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Linux-OS-logs-off-a-Splunk-server-where-Splunk-is/m-p/248385#M47843</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2016-11-03T18:27:55Z</dc:date>
    </item>
  </channel>
</rss>

