# Ship logs to logstash from local machine using filebeat

**URL:** <https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682>\
**Category:** Logstash\
**Created:** [October 12, 2017, 8:59am UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682 "2017-10-12T08:59:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prachi1](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@prachi1](https://discuss.elastic.co/u/prachi1)\
**Post date:** [October 12, 2017, 8:59am UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682/1 "2017-10-12T08:59:45Z")

</div>

How to ship logs to logstash from local machine using filebeat on windows. Can I get to know a detailed procedure of how to do this task apart from the documentation. How do I verify the changes and ensure it's working.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 12, 2017, 11:09am UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682/2 "2017-10-12T11:09:53Z")

</div>

I don't think anyone is going to bother writing up something just for you that's more detailed that the documentation.

Set up Logstash with a beats input according to the documentation and use a simple `stdout { codec => rubydebug }` output. Start Logstash from a terminal and it will dump all incoming events to the terminal. If nothing happens some systematic debugging is in order.

---

<div class="post-metadata">

**Author:** ![prachi1](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@prachi1](https://discuss.elastic.co/u/prachi1)\
**Post date:** [October 12, 2017, 11:53am UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682/3 "2017-10-12T11:53:56Z")

</div>

I am getting this error on windows after making changes in the config file and running the command

C:\elastic\filebeat-5.2.1-windows-x86\_64\>filebeat.exe -e -c filebeat.yml -d "pub  
lish"

Exiting: error loading config file: yaml: line 22: mapping values are not allowe  
d in this context

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [October 12, 2017, 12:46pm UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682/4 "2017-10-12T12:46:36Z")

</div>

And what does filebeat.yml look like? Make sure you format it as preformatted text.

---

<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:** [November 9, 2017, 12:46pm UTC](https://discuss.elastic.co/t/ship-logs-to-logstash-from-local-machine-using-filebeat/103682/5 "2017-11-09T12:46:38Z")

</div>

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