Reading shipper files from sub directories

Hi,

How can i make logstash read shipper conf files inside the sub directories of /etc/logstash/conf.d/

I have copied the conf file inside /etc/logstash/conf.d/ on sub directories.

I need this to be work on the logstash daemon. Currently logstash pipeline starting only when the conf files are under /etc/logstash/conf.d not in its sub directories.

I could get it working on the command line but i need to get it work using daemon.

Any ideas?

The configuration file loader won't search subdirectories if you pass a configuration file path like /etc/logstash/conf.d or /etc/logstash/conf.d/, but maybe it works with e.g. /etc/logstash/conf.d//*?

Hi,

I have tried it in the logstash daemon:

LS_CONF_DIR=/etc/logstash/conf.d//

and still pipeline is not starting logstash.

LS_USER=logstash
LS_GROUP=logstash
LS_HOME=/var/lib/logstash
LS_HEAP_SIZE="1g"
LS_LOG_DIR=/var/log/logstash
LS_LOG_FILE="${LS_LOG_DIR}/$name.log"
LS_CONF_DIR=/etc/logstash/conf.d//
LS_OPEN_FILES=16384
LS_NICE=19
LS_OPTS="-w 5"

Maybe that's not supported then. I think it's arguable that it should work, so you might want to file a GitHub issue.

I don't quite understand why this is important though. Why do you need to store your configuration files in subdirectories?

Hi,

I can seperate different shipper configuration for different machines,like if i have machine name "Muhasin",I can place all the files of the machine in the directory muhasin.