# How do I set the logs for the logstash for windows?

**URL:** <https://discuss.elastic.co/t/how-do-i-set-the-logs-for-the-logstash-for-windows/162464>\
**Category:** Logstash\
**Created:** [December 31, 2018, 1:29am UTC](https://discuss.elastic.co/t/how-do-i-set-the-logs-for-the-logstash-for-windows/162464 "2018-12-31T01:29:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajbs](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@surajbs](https://discuss.elastic.co/u/surajbs)\
**Post date:** [December 31, 2018, 1:29am UTC](https://discuss.elastic.co/t/how-do-i-set-the-logs-for-the-logstash-for-windows/162464/1 "2018-12-31T01:29:56Z")

</div>

How do I set the logs for the logstash ?  
How can I set the Directory to write Logstash internal logs to ?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [January 3, 2019, 3:12pm UTC](https://discuss.elastic.co/t/how-do-i-set-the-logs-for-the-logstash-for-windows/162464/2 "2019-01-03T15:12:49Z")

</div>

Edit your logstash.yml file and edit:

path.logs: /var/log/logstash

---

<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 31, 2019, 3:12pm UTC](https://discuss.elastic.co/t/how-do-i-set-the-logs-for-the-logstash-for-windows/162464/3 "2019-01-31T15:12:52Z")

</div>

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