-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom patterns - permissions denied #1841
Comments
Hi, can you check the permissions of the file it self as well? |
The directory must have the executable permission set, so it should look like: |
-rw-rw-rw- 1 logstash logstash 331 Oct 3 11:22 custpatterns Thanks, Hi, can you check the permissions of the file it self as well? — |
I tried that before – I did chmod 777 then switch it to 666 – I will switch it back to 777 and left you know Thanks, From: João Duarte [mailto:notifications@github.com] The directory must have the executable permission set, so it should look like: — |
Yea same thing: The error reported is: \n Permission denied - /opt/logstash/patterns/patterns"} drwxrwxrwx 2 logstash logstash 4096 Oct 3 10:02 patterns Thanks, From: João Duarte [mailto:notifications@github.com] The directory must have the executable permission set, so it should look like: — |
Can you read the file as user
|
Yea root@st-log01:/opt/logstash/patterns/patterns# sudo -u logstash cat custpatterns Thanks, From: João Duarte [mailto:notifications@github.com] Can you read the file as user logstash? sudo -u logstash "cat " — |
What is the current directory where you're running logstash? it's saying "/opt/logstash/patterns/patterns" is denied, you have a patterns directory inside the patterns dir, that's correct? |
Yes I do logstash is running of opt/Logstash/bin root@st-log01:/opt/logstash/patterns/patterns# ps -ef | grep logstash root@st-log01:/opt/logstash/patterns# ls -l Thanks, [http://www.sight-sound.com/StaticContent/images/signature.gif]http://www.sight-sound.com/ From: João Duarte [mailto:notifications@github.com] What is the current directory where you're running logstash? it's saying "/opt/logstash/patterns/patterns" is denied, you have a patterns directory inside the patterns dir, that's correct? — |
Yes I do logstash is running of opt/Logstash/bin root@st-log01:/opt/logstash/patterns/patterns# ps -ef | grep logstash root@st-log01:/opt/logstash/patterns# ls -l Thanks, |
There seems to be a general problem with folders placed in the patterns folder. Move your custom patterns folder outside the patterns folder and you should be fine. (Tested with logstash-1.4.2) |
For Logstash 1.5.0, we've moved all plugins to individual repositories, so I have moved this issue to logstash-plugins/logstash-filter-grok#38. Let's continue the discussion there! :) |
I setup a custom pattern file in /opt/logstash/patterns/patterns/
when I restart the service logstash will not work/filter logs
when I review the logstash logs in /var/log/ I see this:
The error reported is: \n Permission denied - /opt/logstash/patterns/patterns"}
these are the permissions though:
drw-rw-rw- 2 logstash logstash 4096 Oct 3 10:02 patterns
here is my filter clause:
grok {
break_on_match => "true"
patterns_dir => "./patterns"
The text was updated successfully, but these errors were encountered: