<?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: FilesystemChangeWatcher - error getting attributes of path in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158465#M32136</link>
    <description>&lt;P&gt;Hi nbowman, I get the same error for similar settings, you're not alone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2014 18:44:52 GMT</pubDate>
    <dc:creator>tfpblanchard</dc:creator>
    <dc:date>2014-12-02T18:44:52Z</dc:date>
    <item>
      <title>FilesystemChangeWatcher - error getting attributes of path?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158464#M32135</link>
      <description>&lt;P&gt;System specs:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.10 (Tikanga)
# uname -a
Linux llwbas1qa 2.6.18-371.9.1.el5 #1 SMP Tue May 13 06:52:49 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
# ./splunk version
Splunk Universal Forwarder 6.1.2 (build 213098)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm having an issue with one of my forwarders not forwarding properly. The files are being properly monitored for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#./splunk list monitor
Monitored Directories:
        [No directories monitored.]
Monitored Files:
    /opt/IBM/WebSphere/wp_profile/ConfigEngine/log/ConfigTrace.log*
    /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stderr.log*
    /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stdout.log*
    /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/startServer.log*
    /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemErr.log*
    /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log*
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;User splunk is part of the wasadmin group:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# cat /etc/passwd | grep 'wasadmin\|splunk'
wasadmin:x:650:650::/export/home/wasadmin:/bin/bash
splunk:x:502:1001:Splunk Server:/opt/splunkforwarder:/bin/bash
# cat /etc/group | grep wasadmin
wasadmin:x:650:splunk
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I restart splunk, I still get permission denied errors:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# /opt/splunkforwarder/var/log/splunk/splunkd.log
07-24-2014 17:04:41.650 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/ConfigEngine/log/ConfigTrace.log*.
07-24-2014 17:04:41.650 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemErr.log*.
07-24-2014 17:04:41.651 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log*.
07-24-2014 17:04:41.651 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stderr.log*.
07-24-2014 17:04:41.651 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stdout.log*.
07-24-2014 17:04:41.652 -0400 INFO  TailingProcessor - Parsing configuration stanza: monitor:///opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/startServer.log*.
07-24-2014 17:04:41.652 -0400 INFO  TailingProcessor - Adding watch on path: /opt/IBM/WebSphere/wp_profile/ConfigEngine/log.
07-24-2014 17:04:41.652 -0400 INFO  TailingProcessor - Adding watch on path: /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal.
07-24-2014 17:04:41.653 -0400 WARN  FilesystemChangeWatcher - error getting attributes of path "/opt/IBM/WebSphere/wp_profile/ConfigEngine/log": Permission denied
07-24-2014 17:04:41.653 -0400 WARN  FilesystemChangeWatcher - error getting attributes of path "/opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal": Permission denied
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Permissions for user splunk (part of wasadmin group) to read the files seem fine:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# ls -la /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/ | grep log$
-rw-r--r-- 1 wasadmin wasadmin     167 Jul 24 09:05 native_stderr.log
-rw-r--r-- 1 wasadmin wasadmin    1758 Jul 24 09:05 native_stdout.log
-rw-r--r-- 1 wasadmin wasadmin    2034 Jul 24 09:10 startServer.log
-rw-r--r-- 1 wasadmin wasadmin  231382 Jul 25 08:51 SystemErr.log
-rw-r--r-- 1 wasadmin wasadmin  600072 Jul 25 11:10 SystemOut.log

# ls -la /opt/IBM/WebSphere/wp_profile/ConfigEngine/log/ConfigTrace.log 
-rw-r--r-- 1 wasadmin wasadmin 1481335 Mar 19 12:58 /opt/IBM/WebSphere/wp_profile/ConfigEngine/log/ConfigTrace.log
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;User splunk can read both files:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[splunk@hostname bin]$ tail -n 5 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log
    at com.ibm.ws.asynchbeans.AlarmImpl.runListenerAsCJWork(AlarmImpl.java:173)
    at com.ibm.ws.asynchbeans.am._Alarm.fireAlarm(_Alarm.java:332)
    at com.ibm.ws.asynchbeans.am._Alarm.run(_Alarm.java:229)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1560)

[splunk@hostname bin]$ tail -n 5 /opt/IBM/WebSphere/wp_profile/ConfigEngine/log/ConfigTrace.log 
     [echo] updated RegistrySynchronized in file wkplc.properties with value: true
Target finished: update-registry-sync-property

BUILD SUCCESSFUL
Total time: 43 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SELinux is disabled:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# /usr/sbin/getenforce 
Disabled
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What gives??&lt;/P&gt;
&lt;P&gt;The only thing I can think of is that the log files are being locked out. lsof provides some insight:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# /usr/sbin/lsof /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/*
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
java    24001 wasadmin    0u   REG   8,17     1758 705832 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stdout.log
java    24001 wasadmin    1u   REG   8,17     1758 705832 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stdout.log
java    24001 wasadmin    2u   REG   8,17      167 705833 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/native_stderr.log
java    24001 wasadmin    3u   REG   8,17  1959183 705836 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/verbosegc.20140724.090524.24001.txt.001
java    24001 wasadmin   26w   REG   8,17   599578 705838 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemOut.log
java    24001 wasadmin   27w   REG   8,17   231382 705839 /opt/IBM/WebSphere/wp_profile/logs/WebSphere_Portal/SystemErr.log
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Has anyone ran into this before?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 18:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158464#M32135</guid>
      <dc:creator>nbowman</dc:creator>
      <dc:date>2023-02-22T18:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158465#M32136</link>
      <description>&lt;P&gt;Hi nbowman, I get the same error for similar settings, you're not alone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158465#M32136</guid>
      <dc:creator>tfpblanchard</dc:creator>
      <dc:date>2014-12-02T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158466#M32137</link>
      <description>&lt;P&gt;I had the same problem, did the same things as you did.&lt;BR /&gt;
Then I updated the Splunk Universal Forwarder to 6.2.1 (build 245427) and the problem went away. Seems to be a bug.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2015 08:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158466#M32137</guid>
      <dc:creator>segu</dc:creator>
      <dc:date>2015-01-09T08:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158467#M32138</link>
      <description>&lt;P&gt;I am beginning to see this happen as well in our enterprise. In our case, the splunk forwarders are deployed to Linux boxes and it's after a series of patches are applied to the boxes that the forwarder starts throwing these errors. My guess is that splunk is internally using some os command to get stats about a path, and whatever mechanism it's using is no longer allowed after the os patch. And I'd bet that 6.2 changes the method for stating a path which bypasses this behavior.&lt;/P&gt;

&lt;P&gt;Maybe someone who works for Splunk will see this post and give us some insight.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 20:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158467#M32138</guid>
      <dc:creator>pgullette</dc:creator>
      <dc:date>2015-01-22T20:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158468#M32139</link>
      <description>&lt;P&gt;In case you get trapped with a file not being monitored even if (1) all permissions seem correct, (2) your deployment script is set to &lt;CODE&gt;Enable App, Restart Splunkd&lt;/CODE&gt; and (3) You see these errors&lt;BR /&gt;
&lt;CODE&gt;09-18-2015 12:28:47.311 +1000 WARN  FilesystemChangeWatcher - error getting attributes of path "/software/app/oracle/admin/webhost1/diagnostics/logs/OHS/ohs1/access_log": Permission denied&lt;/CODE&gt;&lt;BR /&gt;
Then I found this actually did work: &lt;BR /&gt;
- Log on to the forwarder and check that your app with the file monitoring stanza has been deployed all OK&lt;BR /&gt;
- Do a &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; (if you’ve got the same problem it won’t be listed)&lt;BR /&gt;
- Restart of splunk e.g. /opt/splunkforwarder/bin/splunk restart&lt;BR /&gt;
- Do another &lt;CODE&gt;splunk list monitor&lt;/CODE&gt; to see if it has worked&lt;/P&gt;

&lt;P&gt;Unfortunately in this exercise I didn’t do a &lt;CODE&gt;ps | grep splunk&lt;/CODE&gt; on the remote host to check if the splunkforwarder process had been restarted by the utility server’s &lt;CODE&gt;splunk reload deploy-server&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 03:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158468#M32139</guid>
      <dc:creator>crash1011</dc:creator>
      <dc:date>2015-09-18T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158469#M32140</link>
      <description>&lt;P&gt;I just resolved this issue myself &lt;/P&gt;

&lt;P&gt;TLDR: Any directories you're reading from, you must have read access to, and must have the execute bit set. &lt;/P&gt;

&lt;P&gt;I highly recommend keeping &lt;CODE&gt;selinux&lt;/CODE&gt; doing its job and executing the following for your hosts:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sudo setfacl -R -m u:splunk:rX /path/to/logs&lt;/CODE&gt;&lt;BR /&gt;
The &lt;CODE&gt;-R&lt;/CODE&gt; switch will apply permissions recursively&lt;BR /&gt;
The &lt;CODE&gt;-m&lt;/CODE&gt; is to modify the existing ACL&lt;BR /&gt;
The &lt;CODE&gt;u:splunk&lt;/CODE&gt; specifies the splunk user&lt;BR /&gt;
The &lt;CODE&gt;rX&lt;/CODE&gt; grants read access to everything, and sets the execute bit &lt;EM&gt;only on files with an existing execute bit flipped.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 16:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158469#M32140</guid>
      <dc:creator>Chris_Garrett</dc:creator>
      <dc:date>2017-05-10T16:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158470#M32141</link>
      <description>&lt;P&gt;I appreciate all the answers here that I have used in my tasks. In addition to above, there is one more thing to check:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ACL entries of account that runs forwarder on RH (or SEL). If nothing works above, this is a good thing to check and add necessary config.&lt;/STRONG&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/158470#M32141</guid>
      <dc:creator>akocak</dc:creator>
      <dc:date>2017-12-22T18:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: FilesystemChangeWatcher - error getting attributes of path</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/631837#M108278</link>
      <description>&lt;P&gt;I had the same error, I fixed it by giving splunk user read access to the&amp;nbsp; logs and the directory they reside in.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 12:37:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/FilesystemChangeWatcher-error-getting-attributes-of-path/m-p/631837#M108278</guid>
      <dc:creator>splunkoptimus</dc:creator>
      <dc:date>2023-02-22T12:37:16Z</dc:date>
    </item>
  </channel>
</rss>

