# Logstash file input

**URL:** <https://discuss.elastic.co/t/logstash-file-input/332802>\
**Category:** Logstash\
**Created:** [May 8, 2023, 10:00am UTC](https://discuss.elastic.co/t/logstash-file-input/332802 "2023-05-08T10:00:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_shinde/32/117294_2.png) [@Vivek\_Shinde](https://discuss.elastic.co/u/Vivek_Shinde)\
**Post date:** [May 8, 2023, 10:00am UTC](https://discuss.elastic.co/t/logstash-file-input/332802/1 "2023-05-08T10:00:15Z")

</div>

Hi Team,  
Need some advice regarding configuration options for file input. If we have multiple patterns for files to watch for, what are pros and cons for below options

1. Configuring each file path pattern as a dedicated file module block

```auto
input {
   file { //type1*
   }
   file { //type2*
   }
}

```

1. Configuring all patterns in single file module block.

```auto
input {
   file { // [type1*,type2*]
   }  
}

```

Thanks in advance!

---

<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:** [June 5, 2023, 10:01am UTC](https://discuss.elastic.co/t/logstash-file-input/332802/2 "2023-06-05T10:01:12Z")

</div>

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