# Logstash is not outputting read files

**URL:** <https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636>\
**Category:** Logstash\
**Created:** [March 30, 2020, 9:16am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636 "2020-03-30T09:16:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattness/32/52975_2.png) [@Mattness](https://discuss.elastic.co/u/Mattness)\
**Post date:** [March 30, 2020, 9:16am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/1 "2020-03-30T09:16:03Z")

</div>

Hello,

I want to use logstash to index some logfiles of mine.

My config, with different paths I have tried:

```auto
input {
  file {
    id => "my_files"
	#path => ["C:\Users\Me\Desktop\files\**\*.log"]
	#path => ["C:/Users/Me/Desktop/files/**/*.log"]
	path => ["C:\Users\Me\Desktop\files\2019-06-13\11\*.log"]	
  }

output{
	stdout {}
}

```

Please note that I just use stdout to test if something comes through. The output is not the problem. I need help regarding the input.

Can someone please help me? 🙂

---

<div class="post-metadata">

**Author:** ![Robo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robo/32/38295_2.png) [@Robo](https://discuss.elastic.co/u/Robo)\
**Post date:** [March 30, 2020, 10:06am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/2 "2020-03-30T10:06:14Z")

</div>

is there any error in logstash log file?  
does the user has permissions to see this files?  
try to use a complete path without "\*", if it will work for a single file.

---

<div class="post-metadata">

**Author:** ![Mattness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattness/32/52975_2.png) [@Mattness](https://discuss.elastic.co/u/Mattness)\
**Post date:** [March 30, 2020, 10:50am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/3 "2020-03-30T10:50:24Z")

</div>

I have no errors in the logfile

I started logstash via admin powershell so I can't imagine there being access restrictions.

I did use the absolute path to a single file, still nothing.

---

<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:** [March 30, 2020, 3:04pm UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/4 "2020-03-30T15:04:50Z")

</div>

Do not use backslash in the path option of a file input. Use forward slash (or double backslash).

---

<div class="post-metadata">

**Author:** ![Mattness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattness/32/52975_2.png) [@Mattness](https://discuss.elastic.co/u/Mattness)\
**Post date:** [March 31, 2020, 6:51am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/5 "2020-03-31T06:51:43Z")

</div>

I tried both to no avail. 😕

---

<div class="post-metadata">

**Author:** ![Robo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/robo/32/38295_2.png) [@Robo](https://discuss.elastic.co/u/Robo)\
**Post date:** [March 31, 2020, 8:04am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/6 "2020-03-31T08:04:28Z")

</div>

You can increase the level of logging by passing `--verbose` or even `--debug`.

Also try to use:

```auto
input { 
        file {
                path => "C:/Users/Me/Desktop/files/2019-06-13/11/*.log"
                start_position => "beginning"
                sincedb_path => "NUL"
        }

```

---

<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:** [April 28, 2020, 8:04am UTC](https://discuss.elastic.co/t/logstash-is-not-outputting-read-files/225636/7 "2020-04-28T08:04:30Z")

</div>

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