# Storing logs from different locations into a Central Machine

**URL:** <https://discuss.elastic.co/t/storing-logs-from-different-locations-into-a-central-machine/159300>\
**Category:** Logstash\
**Created:** [December 4, 2018, 7:04am UTC](https://discuss.elastic.co/t/storing-logs-from-different-locations-into-a-central-machine/159300 "2018-12-04T07:04:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rishav\_Anand](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rishav\_Anand](https://discuss.elastic.co/u/Rishav_Anand)\
**Post date:** [December 4, 2018, 7:04am UTC](https://discuss.elastic.co/t/storing-logs-from-different-locations-into-a-central-machine/159300/1 "2018-12-04T07:04:13Z")

</div>

Hi, I am trying to store logs from different locations into a central machine.  
I have different log files on different physical machines something like

1. dev ---\> nginx.log, web.log
2. staging ---\> nginx.log, web.log

I want to push the logs which are generated on dev, staging servers into the central machine.  
central-machine:/var/log/dev/nginx.log  
central-machine:/var/log/dev/web.log  
central-machine:/var/log/staging/nginx.log  
central-machine:/var/log/staging/web.log

Can someone help me is there a way to do this by using the logstash?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![staodd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/staodd/32/24509_2.png) [@staodd](https://discuss.elastic.co/u/staodd)\
**Post date:** [December 6, 2018, 10:21pm UTC](https://discuss.elastic.co/t/storing-logs-from-different-locations-into-a-central-machine/159300/2 "2018-12-06T22:21:25Z")

</div>

Have you tried anything, or are you expecting someone to do your work for you?

---

<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, 2019, 10:21pm UTC](https://discuss.elastic.co/t/storing-logs-from-different-locations-into-a-central-machine/159300/3 "2019-01-03T22:21:30Z")

</div>

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