# Input simple txt file

**URL:** <https://discuss.elastic.co/t/input-simple-txt-file/202892>\
**Category:** Logstash\
**Created:** [October 9, 2019, 6:00pm UTC](https://discuss.elastic.co/t/input-simple-txt-file/202892 "2019-10-09T18:00:10Z")\
**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:** [October 9, 2019, 7:22pm UTC](https://discuss.elastic.co/t/input-simple-txt-file/202892/4 "2019-10-09T19:22:11Z")

</div>

Add '--log.level trace' to the command line, or set log.level in logstash.yml, or you may even be able to work it with

```
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'
{
    "logger.filewatch.discoverer" : "TRACE",
    "logger.filewatch.observingtail" : "TRACE",
    "logger.filewatch.sincedbcollection" : "TRACE",
    "logger.filewatch.tailmode.handlers.createinitial" : "TRACE",
    "logger.filewatch.tailmode.handlers.grow" : "TRACE",
    "logger.filewatch.tailmode.processor" : "TRACE"
}
'

```

If you are going to use that I would start logstash with a file input that reads a non-existent file, then enable tracing, then add a line to the file.

---

_[View the full topic](https://discuss.elastic.co/t/input-simple-txt-file/202892)._
