# Multiple file inputs as sources

**URL:** <https://discuss.elastic.co/t/multiple-file-inputs-as-sources/143317>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 7, 2018, 12:08pm UTC](https://discuss.elastic.co/t/multiple-file-inputs-as-sources/143317 "2018-08-07T12:08:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [August 7, 2018, 12:08pm UTC](https://discuss.elastic.co/t/multiple-file-inputs-as-sources/143317/1 "2018-08-07T12:08:42Z")

</div>

I want to ingest 2 different log files from filebeat to logstash. I have the below configuration for filebeat. I am using 6.3 version of ELK so don't worry about the path of file. Filebeat will take `C:\data\log\eis.log`. I also tried with different combination of paths like

```
 paths:
        - C:\data\log\eis.log, C:\data\log\sa.log 

```

Below is a complete configuration kindly help.

```
    filebeat.config.modules:
      path: ${path.config}/modules.d/*.yml
      reload.enabled: false

    setup.template.settings:
      index.number_of_shards: 0

    filebeat.inputs:

    - type: log
      enabled: true
      paths:
        - C:\data\log\eis.log
      fields: {log_type: eis}

    - type: log
      enabled: true
      paths:
        - C:\data\log\sa.log
      fields: {log_type: sa}
     
    output.file:
       path: "c:/var/"
       filename: "filebeat.log"

```

I have already asked this question in this forum without much success at [Multiple input configuration](https://discuss.elastic.co/t/multiple-input-configuration/143299). So experts please take a look.

---

<div class="post-metadata">

**Author:** ![Raghuveer\_SJ](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Raghuveer\_SJ](https://discuss.elastic.co/u/Raghuveer_SJ)\
**Post date:** [August 7, 2018, 1:12pm UTC](https://discuss.elastic.co/t/multiple-file-inputs-as-sources/143317/2 "2018-08-07T13:12:12Z")

</div>

The file `sa.log` was saved as `sa.txt.log` I spent a whole half a day just to figure out this ...

---

<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:** [September 4, 2018, 1:12pm UTC](https://discuss.elastic.co/t/multiple-file-inputs-as-sources/143317/3 "2018-09-04T13:12:13Z")

</div>

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