# Logstash not logging

**URL:** <https://discuss.elastic.co/t/logstash-not-logging/75254>\
**Category:** Logstash\
**Created:** [February 15, 2017, 11:28pm UTC](https://discuss.elastic.co/t/logstash-not-logging/75254 "2017-02-15T23:28:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![timmy8ken](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@timmy8ken](https://discuss.elastic.co/u/timmy8ken)\
**Post date:** [February 16, 2017, 3:37am UTC](https://discuss.elastic.co/t/logstash-not-logging/75254/5 "2017-02-16T03:37:51Z")

</div>

Thanks Mike,

That got me there in the end.

Adding the Java option got the log4j plugin working. The following command started Logstash and created logs:

`logstash -f config\logstash.conf --path.logs /E:/ElasticStack/Logstash/logs/ --config.reload.automatic`

I couldn't get logging working for the service, however it turned out I had the LS\_SETTINGS\_DIR environment variable set incorrectly. I had read [INFO: Windows, Logstash and could not find log4j2 configuration](https://discuss.elastic.co/t/info-windows-logstash-and-could-not-find-log4j2-configuration/67633) which suggested using the unix style for the path. I changed it to a Windows style and it picked up the logstash.yml config.

The configuration setting I used in the yml file was:

`path.logs: "//E://ElasticStack//Logstash//logs"`

Thanks for your help with this.

Tim

---

_[View the full topic](https://discuss.elastic.co/t/logstash-not-logging/75254)._
