# Logstash not load conf.d directory

**URL:** <https://discuss.elastic.co/t/logstash-not-load-conf-d-directory/199733>\
**Category:** Logstash\
**Created:** [September 16, 2019, 10:00pm UTC](https://discuss.elastic.co/t/logstash-not-load-conf-d-directory/199733 "2019-09-16T22:00:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcoa](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mcoa](https://discuss.elastic.co/u/mcoa)\
**Post date:** [September 16, 2019, 10:00pm UTC](https://discuss.elastic.co/t/logstash-not-load-conf-d-directory/199733/1 "2019-09-16T22:00:53Z")

</div>

Hello,  
I'm use `Logstash` `v7.3.2-1` on Centos 7. When started the service from systemctl run fine but not load the `/etc/logstash/conf.d/` directory . My filter work fine with the "manual" command:

1. `/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/apache.conf`

ie:

```auto
{
    "archivename" => "Audiencias/xxxx-0-1230",
         "action" => "MKCOL",
       "clientip" => "10.94.10.41",
           "host" => "oc-web-01.example.com",
       "username" => "JG1230-02",
        "message" => "10.94.10.41 - - [16/Sep/2019:18:36:17 -0300] \"MKCOL /remote.php/dav/files/JG1230-02/Audiencias/xxxx-0-1230 HTTP/1.1\" 201 - \"-\" \"Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) (Nextcloud)\"",
       "@version" => "1",
     "@timestamp" => 2019-09-16T21:36:17.000Z,
       "response" => "201",
           "path" => "/var/log/httpd/access_log"

```

I edit the `/etc/systemd/system/logstash.service` and add `"-f" "/etc/logstash/conf.d/apache.conf"` but not load file .

```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=/usr/share/logstash/bin/logstash "--path.settings" "/etc/logstash" "-f" "/etc/logstash/conf.d/apache.conf"
Restart=always
WorkingDirectory=/
Nice=19
LimitNOFILE=16384

[Install]
WantedBy=multi-user.target

```

what's wrong ?  
Thanks.

---

<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:** [October 14, 2019, 10:01pm UTC](https://discuss.elastic.co/t/logstash-not-load-conf-d-directory/199733/2 "2019-10-14T22:01:09Z")

</div>

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