<?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 How do I prevent Introspection Generator to read information about non splunk process when hidepid activated on /proc ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/323022#M4570</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;my splunk is running as splunk user on a linux system where the admin has secured the OS by using hidepid=1 on /proc (see &lt;A href="https://ubuntuforums.org/showthread.php?t=2173093"&gt;https://ubuntuforums.org/showthread.php?t=2173093&lt;/A&gt; and &lt;A href="https://www.kernel.org/doc/Documentation/filesystems/proc.txt"&gt;https://www.kernel.org/doc/Documentation/filesystems/proc.txt&lt;/A&gt;) &lt;/P&gt;

&lt;P&gt;As a consequence, splunkd.log is filled with these error messages : &lt;BR /&gt;
ERROR IntrospectionGenerator:resource_usage - RU - Fail to readlink(2) /proc/nnnn/exe: Operation not permitted where nnnn is a pid from a process not run by splunk&lt;BR /&gt;
This is repeated for each pid so generate a lot of noise.&lt;/P&gt;

&lt;P&gt;I would like to tell Introspection to only look at it's own pid in that case or not produce error message for this.&lt;/P&gt;

&lt;P&gt;Any idea how to do this ?&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 09:14:18 GMT</pubDate>
    <dc:creator>maraman_splunk</dc:creator>
    <dc:date>2017-05-31T09:14:18Z</dc:date>
    <item>
      <title>How do I prevent Introspection Generator to read information about non splunk process when hidepid activated on /proc ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/323022#M4570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;my splunk is running as splunk user on a linux system where the admin has secured the OS by using hidepid=1 on /proc (see &lt;A href="https://ubuntuforums.org/showthread.php?t=2173093"&gt;https://ubuntuforums.org/showthread.php?t=2173093&lt;/A&gt; and &lt;A href="https://www.kernel.org/doc/Documentation/filesystems/proc.txt"&gt;https://www.kernel.org/doc/Documentation/filesystems/proc.txt&lt;/A&gt;) &lt;/P&gt;

&lt;P&gt;As a consequence, splunkd.log is filled with these error messages : &lt;BR /&gt;
ERROR IntrospectionGenerator:resource_usage - RU - Fail to readlink(2) /proc/nnnn/exe: Operation not permitted where nnnn is a pid from a process not run by splunk&lt;BR /&gt;
This is repeated for each pid so generate a lot of noise.&lt;/P&gt;

&lt;P&gt;I would like to tell Introspection to only look at it's own pid in that case or not produce error message for this.&lt;/P&gt;

&lt;P&gt;Any idea how to do this ?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 09:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/323022#M4570</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2017-05-31T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent Introspection Generator to read information about non splunk process when hidepid activated on /proc ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/323023#M4571</link>
      <description>&lt;P&gt;As a workaround, I completely disabled the generator for resource usage &lt;BR /&gt;
in server.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[introspection:generator:resource_usage]
disabled=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this stop the error message flood but that will also disable all related stats in the monitoring console....&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 09:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/323023#M4571</guid>
      <dc:creator>maraman_splunk</dc:creator>
      <dc:date>2017-05-31T09:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I prevent Introspection Generator to read information about non splunk process when hidepid activated on /pro</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/534967#M4572</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can also add the splunk group gid to the fstab ($ id splunk_user) :&lt;BR /&gt;&lt;SPAN&gt;proc /proc proc rw,nosuid,nodev,noexec,relatime,&lt;/SPAN&gt;&lt;STRONG&gt;gid=&amp;lt;splunk_gid&amp;gt;&lt;/STRONG&gt;&lt;SPAN&gt;,hidepid=1 0 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;According to man proc :&lt;/P&gt;&lt;PRE&gt;       &lt;STRONG&gt;gid&lt;/STRONG&gt;=&lt;I&gt;gid&lt;/I&gt; (since Linux 3.3)
              Specifies the ID of a group whose members are authorized
              to learn process information otherwise prohibited by
              &lt;STRONG&gt;hidepid &lt;/STRONG&gt;(i.e., users in this group behave as though &lt;I&gt;/proc&lt;/I&gt;
              was mounted with &lt;I&gt;hidepid=0&lt;/I&gt;).  This group should be used
              instead of approaches such as putting nonroot users into
              the &lt;A href="https://man7.org/linux/man-pages/man5/sudoers.5.html" target="_blank"&gt;sudoers(5)&lt;/A&gt; file.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 15:26:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-I-prevent-Introspection-Generator-to-read-information/m-p/534967#M4572</guid>
      <dc:creator>ipfyx</dc:creator>
      <dc:date>2021-01-06T15:26:34Z</dc:date>
    </item>
  </channel>
</rss>

