# Two files =\> one output

**URL:** <https://discuss.elastic.co/t/two-files-one-output/210904>\
**Category:** Logstash\
**Created:** [December 6, 2019, 2:23pm UTC](https://discuss.elastic.co/t/two-files-one-output/210904 "2019-12-06T14:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slawek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slawek/32/46995_2.png) [@slawek](https://discuss.elastic.co/u/slawek)\
**Post date:** [December 6, 2019, 2:23pm UTC](https://discuss.elastic.co/t/two-files-one-output/210904/1 "2019-12-06T14:23:19Z")

</div>

Can logstash be configured to process logs?  
Scenario below:

1. File1 with logs is copied to path/file1
2. File2 with logs is copied to path/file2. File2 containing events from file1 and new events.  
Task for logstash:)
3. Only new events will be sent futher.  
Is it possible using logstash?

---

<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:** [January 3, 2020, 2:23pm UTC](https://discuss.elastic.co/t/two-files-one-output/210904/2 "2020-01-03T14:23:20Z")

</div>

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