# Logstash running without logstash.yml

**URL:** <https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338>\
**Category:** Logstash\
**Created:** [June 16, 2022, 4:31am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338 "2022-06-16T04:31:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [June 16, 2022, 4:31am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/1 "2022-06-16T04:31:09Z")

</div>

Hi,  
I am running logstash for a single file by

```auto
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 😀 (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.

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [June 21, 2022, 4:12am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/2 "2022-06-21T04:12:07Z")

</div>

Hi,  
Anyone have Idea about it ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 21, 2022, 6:40am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/3 "2022-06-21T06:40:07Z")

</div>

> [@vikram\_singh](#):
>
> I am using Linux and my logstash.yml and pipelines.yml files present at `/etc/logstash/l ` directory.

What directory? As that does not look valid.

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [June 21, 2022, 6:56am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/4 "2022-06-21T06:56:06Z")

</div>

Hi  
Thanks for reply.

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

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [July 11, 2022, 6:04am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/5 "2022-07-11T06:04:35Z")

</div>

Hi,  
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

Thanks

---

<div class="post-metadata">

**Author:** ![vikram\_singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikram_singh/32/66490_2.png) [@vikram\_singh](https://discuss.elastic.co/u/vikram_singh)\
**Post date:** [July 20, 2022, 5:47am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/6 "2022-07-20T05:47:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2022, 5:48am UTC](https://discuss.elastic.co/t/logstash-running-without-logstash-yml/307338/7 "2022-08-17T05:48:07Z")

</div>

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