I tried to structure logstash in this way:
This does not seem to be supported. If I run logstash with a -f conf then it will only look at the immediate files in conf and not recurse into the subdirectories.
For patterns I can do this and then make my patterns_dir path point to the directory I want, except the patterns directory can only contain files. If I try to point patterns_dir to a directory that contains another directory I get the error:
Permission denied - patterns/subdir1/subdir2
A flat structure is definitely doable but we plan on using a centralized logstash server for many different types of servers and would like to organize the filters and patterns in a directory structure reflecting those different server types.
The -f flag can take a glob, so you can recursively gather all .conf files with: -f conf/*/.conf
Thanks, I got an error with what you put but it got me in the right directory. I was able to solve it with
The patterns thing is still an issue though. If you point patterns_dir to a directory that has another directory then it gives a Permission denied. I don't think it is actually a permission problem, I am the owner and chmod 777 for that directory.
Oh, the comment removes asterixes. You probably had the right one at first too.
Support done by Jordan