# Filebeat - seems to be not picking up when using the inputs.d directory

**URL:** <https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 4, 2020, 11:10am UTC](https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058 "2020-03-04T11:10:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apollyon](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Apollyon](https://discuss.elastic.co/u/Apollyon)\
**Post date:** [March 4, 2020, 11:10am UTC](https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058/1 "2020-03-04T11:10:02Z")

</div>

Hello,

When having a play around with Filebeat and the input capabilities of the agent.  
Below is the config from the **filebeat.yml** and an example of a yml that is in the inputs.d directory.

**filebeat.yml - Works when config like this**

```
#============================= Filebeat inputs ===============================

#filebeat.config:
# inputs:
# enabled: true
# Glob pattern for configuration loading
# path: /etc/filebeat/inputs.d/*.yml

# Set to true to enable config reloading
# reload.enabled: true

# Period on which files under path should be checked for changes
# reload.period: 10s

#=========================== Filebeat inputs =============================

filebeat.inputs:

- type: s3
  enabled: true
  queue_url: https://thisisalink.to.a.place.com
  tags: ["this-is-a-tag"]

```

**filebeat.yml - seems to struggle when only using the inputs config**

```
#============================= Filebeat inputs ===============================

filebeat.config:
  inputs:
    enabled: true
# Glob pattern for configuration loading
    path: /etc/filebeat/inputs.d/*.yml

# Set to true to enable config reloading
    reload.enabled: true

# Period on which files under path should be checked for changes
    reload.period: 10s

#=========================== Filebeat inputs =============================

filebeat.inputs:

- type: s3
  enabled: false
  queue_url: https://thisisalink.to.a.place.com
  tags: ["this-is-a-tag"]

```

Whereas, this is the the yml file which is in the **inputs.d** directory (same as when put in the filebeat.yml)

```
filebeat.inputs:

- type: s3
  enabled: true
  queue_url: https://thisisalink.to.a.place.com
  tags: ["this-is-a-tag"]

```

With this set up, it seems that Filebeat is struggling to pick up the needed data sets/ logs that are intended to be monitored. Where as, when I put everything in the **filebeat.yml** , i.e. when putting the config in the _ **filebeat.input** _ section. You are able to see the data flow through great.

I am a little stuck here as I am unsure why this is. Would this be a permissions thing? However this has the same set up and permission setting as the normal **modules.d** directory has.

OR would this be a case that I am missing something small or just having a slow moment.

Thank you!

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [March 4, 2020, 3:56pm UTC](https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058/2 "2020-03-04T15:56:24Z")

</div>

Hey @Apollyon,

When loading external configuration files with `filebeat.config.inputs`, the content of the files should be only a list of inputs. In your case you would need to remove the `filebeat.inputs:` line, so your file in the `inputs.d` directory looks like that:

```auto
- type: s3
  enabled: true
  queue_url: https://thisisalink.to.a.place.com
  tags: ["this-is-a-tag"]

```

---

<div class="post-metadata">

**Author:** ![Apollyon](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Apollyon](https://discuss.elastic.co/u/Apollyon)\
**Post date:** [March 4, 2020, 4:29pm UTC](https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058/3 "2020-03-04T16:29:28Z")

</div>

Hey @jsoriano,

ahhhh, this makes sense!

Thank you very much for that!!

---

<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 1, 2020, 4:29pm UTC](https://discuss.elastic.co/t/filebeat-seems-to-be-not-picking-up-when-using-the-inputs-d-directory/222058/4 "2020-04-01T16:29:32Z")

</div>

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