# Multiple inputs matching the same log path

**URL:** <https://discuss.elastic.co/t/multiple-inputs-matching-the-same-log-path/373744>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 27, 2025, 6:26pm UTC](https://discuss.elastic.co/t/multiple-inputs-matching-the-same-log-path/373744 "2025-01-27T18:26:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheesypie54321](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@cheesypie54321](https://discuss.elastic.co/u/cheesypie54321)\
**Post date:** [January 27, 2025, 6:26pm UTC](https://discuss.elastic.co/t/multiple-inputs-matching-the-same-log-path/373744/1 "2025-01-27T18:26:53Z")

</div>

I was just wondering if it is advisable to set up a filebeat config with multiple inputs matching the same log paths and potentially the same lines. Is there any uniqueness required in separate file streams?

```auto
- type: filestream
    id: test1
    enabled: true
    ignore_inactive: since_first_start
    fields_under_root: true
    include_lines: [Error]
    paths: [/home/test_user/dir/test_*.log]

  - type: filestream
    id: test2
    enabled: true
    ignore_inactive: since_first_start
    fields_under_root: true
    include_lines: [Error]
    paths: [/home/test_user/dir/test_*.log]

```

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 27, 2025, 8:03pm UTC](https://discuss.elastic.co/t/multiple-inputs-matching-the-same-log-path/373744/2 "2025-01-27T20:03:43Z")

</div>

Welcome to the community!

It's not clear why do you want to read the same logs twice. What do you want to achive?  
I haven't try, however separated IDs should produce different records in log.json data registry. You can have the same inputs and with pattern conditions you can separate log lines.
