# How can i setting that

**URL:** <https://discuss.elastic.co/t/how-can-i-setting-that/214758>\
**Category:** Logstash\
**Created:** [January 13, 2020, 5:46am UTC](https://discuss.elastic.co/t/how-can-i-setting-that/214758 "2020-01-13T05:46:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pageno11](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@pageno11](https://discuss.elastic.co/u/pageno11)\
**Post date:** [January 13, 2020, 5:46am UTC](https://discuss.elastic.co/t/how-can-i-setting-that/214758/1 "2020-01-13T05:46:36Z")

</div>

How can i setting that  
Server 1  
Input milti files (differnt path)  
Output logstash tcp

Server 2  
Input logstash tcp  
Output also multi files (diffrent path)

Only use logstash but in/out is diffrent server.

Also, Can i use the input filename as the oupt filename?

Pleash help me and thank you.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 13, 2020, 1:11pm UTC](https://discuss.elastic.co/t/how-can-i-setting-that/214758/2 "2020-01-13T13:11:45Z")

</div>

> [@pageno11](#):
>
> Also, Can i use the input filename as the oupt filename?

The file input adds a [path] field to events. You could use a sprintf reference to this in the file output.

---

<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:** [February 10, 2020, 1:11pm UTC](https://discuss.elastic.co/t/how-can-i-setting-that/214758/3 "2020-02-10T13:11:56Z")

</div>

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