# Error in logstash plain file

**URL:** <https://discuss.elastic.co/t/error-in-logstash-plain-file/320624>\
**Category:** Logstash\
**Created:** [December 6, 2022, 9:49pm UTC](https://discuss.elastic.co/t/error-in-logstash-plain-file/320624 "2022-12-06T21:49:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 7, 2022, 12:43am UTC](https://discuss.elastic.co/t/error-in-logstash-plain-file/320624/4 "2022-12-07T00:43:57Z")

</div>

> [@michaeljsamuel](#):
>
> `path => "C:\Logs\logstashtest.txt"`

Try changing the \ to /. Last time I checked \ was treated as an escape, so it is waiting for something to be written to `C:Logslogsstashtest.txt`.

If that does not help set --log.level trace and looks for messages from the filewatch module. [This thread](https://discuss.elastic.co/t/logstash-not-reading-from-file-input/166180/14) shows what filewatch traces look like.

---

_[View the full topic](https://discuss.elastic.co/t/error-in-logstash-plain-file/320624)._
