# Copying file contents to another file using filebeat

**URL:** <https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 23, 2018, 1:48pm UTC](https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126 "2018-04-23T13:48:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuff\_Sodiq](https://avatars.discourse-cdn.com/v4/letter/y/c5a1d2/32.png) [@Yusuff\_Sodiq](https://discuss.elastic.co/u/Yusuff_Sodiq)\
**Post date:** [April 23, 2018, 1:48pm UTC](https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126/1 "2018-04-23T13:48:40Z")

</div>

I would like to use the filebeat module to pull the contents of a file in one server to a file in another server. I need help on how to do this if it is possible.

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [April 23, 2018, 4:28pm UTC](https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126/2 "2018-04-23T16:28:09Z")

</div>

@Yusuff_Sodiq If I understand correctly you don't want to send your data to Elasticsearch or Logstash but just copy the content of the file to another server? This look more like a job for [rsync](https://en.wikipedia.org/wiki/Rsync).

---

<div class="post-metadata">

**Author:** ![Yusuff\_Sodiq](https://avatars.discourse-cdn.com/v4/letter/y/c5a1d2/32.png) [@Yusuff\_Sodiq](https://discuss.elastic.co/u/Yusuff_Sodiq)\
**Post date:** [April 23, 2018, 5:15pm UTC](https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126/3 "2018-04-23T17:15:01Z")

</div>

Exactly! you got it right, thanks.

---

<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:** [May 21, 2018, 5:15pm UTC](https://discuss.elastic.co/t/copying-file-contents-to-another-file-using-filebeat/129126/4 "2018-05-21T17:15:13Z")

</div>

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