# Getting two inputs (from beats and from a file)

**URL:** <https://discuss.elastic.co/t/getting-two-inputs-from-beats-and-from-a-file/104060>\
**Category:** Logstash\
**Created:** [October 16, 2017, 8:33am UTC](https://discuss.elastic.co/t/getting-two-inputs-from-beats-and-from-a-file/104060 "2017-10-16T08:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomer](https://avatars.discourse-cdn.com/v4/letter/t/41988e/32.png) [@tomer](https://discuss.elastic.co/u/tomer)\
**Post date:** [October 16, 2017, 8:33am UTC](https://discuss.elastic.co/t/getting-two-inputs-from-beats-and-from-a-file/104060/1 "2017-10-16T08:33:23Z")

</div>

Hi, how can I get input from two sources, from some file, and from beats?

Here is what I did

```
input {
  file{
    path => "/var/example/exampleFile.txt"
  }
  beats {
    port => 5044
  }
}
```

---

<div class="post-metadata">

**Author:** ![Shrawan\_Bhagwat](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Shrawan\_Bhagwat](https://discuss.elastic.co/u/Shrawan_Bhagwat)\
**Post date:** [October 16, 2017, 8:40am UTC](https://discuss.elastic.co/t/getting-two-inputs-from-beats-and-from-a-file/104060/2 "2017-10-16T08:40:04Z")

</div>

Hi,

This should work.

---

<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:** [November 13, 2017, 8:40am UTC](https://discuss.elastic.co/t/getting-two-inputs-from-beats-and-from-a-file/104060/3 "2017-11-13T08:40:08Z")

</div>

Closed on November 13, 2017, 8:40am UTC

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