Logstash running without logstash.yml

I am running logstash for a single file by

sudo /usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -f /etc/logstash/conf.d/myfile.conf

it is running correctly.

But when I start logstash as a service by sudo systemctl logstash start . It started but it 's not picking conf file from conf.d by pipelines.yml.

I am using Linux and my logstash.yml and pipelines.yml files present at /etc/logstash/l directory.

I rename my logstash.yml and after that I start logstash as service, it started :grinning: (without logstash.yml)

No Idea where it get all settings and configuration because I change/renamed logstash.yml

My target is run logstash as a service and it will pick pipelines setting to run multiple pipeline.

Thanks in Advance.

Anyone have Idea about it ?

What directory? As that does not look valid.

Thanks for reply.

my logstash.yml and pipelines.yml path is /etc/logstash/
And it's not working.