# Logstash Configuration - filepath from remote machine

**URL:** <https://discuss.elastic.co/t/logstash-configuration-filepath-from-remote-machine/132461>\
**Category:** Logstash\
**Created:** [May 18, 2018, 10:11am UTC](https://discuss.elastic.co/t/logstash-configuration-filepath-from-remote-machine/132461 "2018-05-18T10:11:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [May 21, 2018, 5:43am UTC](https://discuss.elastic.co/t/logstash-configuration-filepath-from-remote-machine/132461/4 "2018-05-21T05:43:43Z")

</div>

Hi @Sunillinus,

Please follow the given steps to transfer logs to elastic search:-

1. Refer to the link:- [Logstash(5.4.3) fails to transfer logs even when logstash starts as a service](https://discuss.elastic.co/t/logstash-5-4-3-fails-to-transfer-logs-even-when-logstash-starts-as-a-service/130093)
2. Use the below logstash.conf file for sending logs from logstash to elasticsearch  
input {  
file {  
path =\> ["/var/log/_.log", "/var/log/messages", "/var/log/syslog","/var/log/_.log"] #mention path of any file  
tags=\> [""] #mention the tag here e.g. tags=\> ["sunil"]  
}  
}

output {  
elasticsearch {  
hosts =\> "10.0.x.x" #mention the elasticsearch ip address here  
manage\_template =\> false  
index =\> "Testing-%{+YYYY.MM.dd}"  
}  
}  
3) Save the file and exit.  
4) Start the logstash

Note: Here, logs are transferred to elasticsearch without using filebeat. As, logs can be transferred to elasticsearch by simply using logstash only.

@Sunillinus let me know if you face any issues

Thanks  
Nikhil Kapoor

---

_[View the full topic](https://discuss.elastic.co/t/logstash-configuration-filepath-from-remote-machine/132461)._
