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.

Any suggestion on it.
I tried all possible ways.
I installed logstash by rpm on linux centos.
I removed logstash.yml from etc/logstash directory.
Still able to run a single file by command sudo /usr/share/logstash/bin/logstash --path.settings /etc/logstash/ -f /etc/logstash/conf.d/myfile.conf


I installed logstash by rpm command.
Have any idea about this issue.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.