# Adding multiple input files

**URL:** <https://discuss.elastic.co/t/adding-multiple-input-files/296832>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [February 10, 2022, 11:15am UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832 "2022-02-10T11:15:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)\
**Post date:** [February 10, 2022, 11:15am UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/1 "2022-02-10T11:15:10Z")

</div>

Hello,  
Is it possible to add two inputs files in filebeat.yml?  
Example:-

```auto
    - /etc/filebeat/inputs.d/*.yml
    - /etc/filebeat-oss/inputs.d/*.yml

```

I wanna add these two files in filebeat.yml under filebeat.config.inputs.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [February 10, 2022, 2:23pm UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/2 "2022-02-10T14:23:14Z")

</div>

We allow only one glob pattern in `filebeat.config.inputs.path`. However, the pattern can match multiple directories. Have you tried setting the option to `/etc/filebeat*/inputs.d/*.yml`?

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [February 10, 2022, 5:24pm UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/3 "2022-02-10T17:24:17Z")

</div>

U can only use 1 glob? The documentation for filestream input says a list of glob based paths, [filestream input | Filebeat Reference [7.17] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/7.17/filebeat-input-filestream.html#filestream-input-paths). I feel like that's misleading.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 10, 2022, 7:13pm UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/4 "2022-02-10T19:13:32Z")

</div>

> [@legoguy1000](#):
>
> The documentation for filestream input says a list of glob based paths

This is different, the inputs supports a list of glob, the config that point to a directory with other configuration files does not.

The config path for inputs is used when you want to load the inputs from external files, I used in that way on a previous company.

The documentation is [here](https://www.elastic.co/guide/en/beats/filebeat/7.17/filebeat-configuration-reloading.html#load-input-config).

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [February 10, 2022, 7:25pm UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/5 "2022-02-10T19:25:25Z")

</div>

🤦‍♂️🤦‍♂️ completely misread that

---

<div class="post-metadata">

**Author:** ![abhi.logs](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abhi.logs](https://discuss.elastic.co/u/abhi.logs)\
**Post date:** [February 11, 2022, 7:05am UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/6 "2022-02-11T07:05:19Z")

</div>

I have added like this, It's working.

```auto
filebeat.config.inputs:
  enabled: true
  path: /etc/filebeat/inputs.d/*.yml
  reload.enabled: true
  reload.period: 10s
filebeat.inputs:
- type: log
  paths:
    - /path/log/*.log

```

but the issue is in \*.yml have JSON log and input for \*.log format, In the message, I'm getting timestamp as message, Is there any way I can drop the timestamp string from the message.

---

<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:** [March 11, 2022, 9:05am UTC](https://discuss.elastic.co/t/adding-multiple-input-files/296832/7 "2022-03-11T09:05:20Z")

</div>

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