I'm currently encountering the error that Logstash is not able to open several files due to a "Permission denied" error
[2017-08-24T08:25:43,619][WARN ][logstash.inputs.file ] failed to open /media/Logs/000000760400001.txt: Permission denied - /media/Logs/000000760400001.txt
The files have the following access rights: -rwxr-xr-x 1 elk elk 1348 Aug 17 09:02 000000760400001.txt
I'm running Logstash as the user elk (who is a member of the adm group) so the privileges should be sufficient. I also ran Logstash as a superuser with the same result. I'm running Logstash by executing elk@ELK:~$ /media/ELKstack/logstash-5.5.1/bin/logstash as I downloaded the zip files instead of installing from DEB.
Has anybody an idea of the cause of this error? Interestingly, this does not apply to all files as some are processed.
is it CentOS 7?
In case selinux is enabled please do below
$ sestatus
if you see its enabled then
$ vi /etc/sysconfig/selinux
find selinux=enforcing and change it to selinux=disabled press :wq to save and quit from the editor.
Reboot the server you should be fine now
AFAIK no ACL is applied. And it's a Ubuntu 16.04 machine. Is it possible that it has to to with this "Too many files" error that has been mentioned in different topics?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.