# Logstash Not Loading Config Files Running as Service

**URL:** <https://discuss.elastic.co/t/logstash-not-loading-config-files-running-as-service/300430>\
**Category:** Logstash\
**Created:** [March 23, 2022, 9:35am UTC](https://discuss.elastic.co/t/logstash-not-loading-config-files-running-as-service/300430 "2022-03-23T09:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivanchak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivanchak/32/101755_2.png) [@ivanchak](https://discuss.elastic.co/u/ivanchak)\
**Post date:** [March 23, 2022, 9:35am UTC](https://discuss.elastic.co/t/logstash-not-loading-config-files-running-as-service/300430/1 "2022-03-23T09:35:22Z")

</div>

Dear all,

My Logstash is not reading config files I have specified in `pipelines.yml`.

pipelines.yml

```auto
# This file is where you define your pipelines. You can define multiple.
# For more information on multiple pipelines, see the documentation:
# https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html

- pipeline.id: main
  path.config: "/opt/logstash-8.1.0/config/conf.d/*.conf"

```

In the path, I have `syslog.conf` that's owned by the logstash user and have permission 644 on this file. However, logs from Logstash keeps telling it couldn't find any config file under the path, and stopped since no pipeline has been initialized:

```auto
[2022-03-23T17:30:05,289][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=>"/opt/logstash-8.1.0/config/conf.d/*.conf"}

```

```auto
ls -l /opt/logstash-8.1.0/config/conf.d/
-rw-r--r-- 1 logstash logstash 1003 Mar 23 16:10 syslog.conf

```

As specified in my `logstash.service` file, I'm running this as logstash user:

```auto
[Unit]
Description=logstash

[Service]
Type=simple
User=logstash
Group=logstash
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/logstash
EnvironmentFile=-/etc/sysconfig/logstash
ExecStart=/opt/logstash-8.1.0/bin/logstash "--path.settings" "/opt/logstash-8.1.0/config"
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384

# When stopping, how long to wait before giving up and sending SIGKILL?
# Keep in mind that SIGKILL on a process can cause data loss.
TimeoutStopSec=infinity

[Install]
WantedBy=multi-user.target

```

---

<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:** [April 20, 2022, 9:35am UTC](https://discuss.elastic.co/t/logstash-not-loading-config-files-running-as-service/300430/2 "2022-04-20T09:35:52Z")

</div>

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