# Logstash does not show any output on windows with stdout

**URL:** <https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491>\
**Category:** Logstash\
**Created:** [July 27, 2016, 9:22am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491 "2016-07-27T09:22:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.madhusudan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@a.madhusudan](https://discuss.elastic.co/u/a.madhusudan)\
**Post date:** [July 27, 2016, 9:22am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/1 "2016-07-27T09:22:14Z")

</div>

I am using logstash 2.3.4. I tried to parse a file and output it to stdout. Nothing fancy here. Given below is the config file

` input {  
file {  
path =\> "/c/logstash-2.3.4/input.txt"  
start\_position =\> "beginning"  
ignore\_older =\> 0  
}  
stdin {}  
}

output {  
stdout { }  
}  
`

Tried everything that is possible. Yet the output fails to appear. Please note that I have already tried everything specified in "[Logstash not showing any output (SOLVED)](https://discuss.elastic.co/t/logstash-not-showing-any-output-solved/28636)"  
I have deleted sincedb file  
I have created new files as input files  
I used stdin as another input source. THAT WORKS FINE

What am i missing with respect to text files. Or is logstash not optimised for Windows???

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [July 27, 2016, 7:18pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/2 "2016-07-27T19:18:42Z")

</div>

> [@a.madhusudan](#):
>
> path =\> "/c/logstash-2.3.4/input.txt"

This path is on Windows? Please try `"C:\logstash-2.3.4\input.txt"` or `"C:/logstash-2.3.4/input.txt"`  
Also, running logstash with --verbose will show you what's going on in the background.

---

<div class="post-metadata">

**Author:** ![a.madhusudan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@a.madhusudan](https://discuss.elastic.co/u/a.madhusudan)\
**Post date:** [July 28, 2016, 2:58am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/3 "2016-07-28T02:58:03Z")

</div>

Thanks  
This works like a gem  
I used /c/ as it works in the bash I am using in windows.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://discuss.elastic.co/u/Abhishek)\
**Post date:** [July 29, 2016, 11:47am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/4 "2016-07-29T11:47:09Z")

</div>

Hi,

## I am facing the same issue on windows 7.

**config file (test.conf):**  
input {  
file {  
path =\> "C:/ElasticSearch/logstash-2.3.4/userdata/sample\_data"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
ignore\_older =\> 0  
}  
}

output {  
stdout {}  
}

**sample\_data file (some random log):**  
Date , GPU Core Clock [MHz] , GPU Memory Clock [MHz] , GPU Temperature [°C] , Memory Used [MB] , GPU Load [%] , Memory Controller Load [%] , Video Engine Load [%] , VDDC [V] ,  
2013-12-30 10:35:32 , 135.0 , 405.0 , 44.0 , 139 , 0 , 5 , 0 , 0.8870 ,  
2013-12-30 10:35:33 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,  
2013-12-30 10:35:34 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,  
2013-12-30 10:35:35 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,  
2013-12-30 10:35:36 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,

Following is the output from powershell:

**PS C:\ElasticSearch\logstash-2.3.4\> .\bin\logstash.bat -f .\bin\test.conf -v**  
io/console not supported; tty will not be manipulated  
←[32mstarting agent {:level=\>:info}←[0m  
←[32mstarting pipeline {:id=\>"main", :level=\>:info}←[0m  
Settings: Default pipeline workers: 2  
←[32mRegistering file input {:path=\>["C:/ElasticSearch/logstash-2.3.4/userdata/sample\_data"], :level=\>:info}←[0m  
←[32mStarting pipeline {:id=\>"main", :pipeline\_workers=\>2, :batch\_size=\>125, :batch\_delay=\>5, :max\_inflight=\>250, :level  
=\>:info}←[0m  
Pipeline main started

My guess is, issue is due to path in windows. So I've tried  
path =\> "C:\ElasticSearch\logstash-2.3.4\userdata\sample\_data"  
with no success.

Please help me out with it.

Thanks,  
Abhishek

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [July 29, 2016, 3:19pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/5 "2016-07-29T15:19:33Z")

</div>

> [@Abhishek](#):
>
> PS C:\Elasticsearch\logstash-2.3.4\> .\bin\logstash.bat -f .\bin\test.conf -v

Try

```auto
logstash.bat agent -f test.conf --verbose

```

The --verbose switch will give your more info to troubleshoot.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://discuss.elastic.co/u/Abhishek)\
**Post date:** [August 1, 2016, 10:22am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/6 "2016-08-01T10:22:50Z")

</div>

Tried, but no success.  
following is the command line output:

PS C:\ElasticSearch\logstash-2.3.4\bin\> .\logstash.bat agent -f .\test.conf -v  
io/console not supported; tty will not be manipulated  
←[32mstarting agent {:level=\>:info}←[0m  
←[32mstarting pipeline {:id=\>"main", :level=\>:info}←[0m  
Settings: Default pipeline workers: 2  
←[32mRegistering file input {:path=\>["C:/ElasticSearch/logstash-2.3.4/userdata/sample\_data"], :level=\>:info}←[0m  
←[32mStarting pipeline {:id=\>"main", :pipeline\_workers=\>2, :batch\_size=\>125, :batch\_delay=\>5, :max\_inflight=\>250, :level  
=\>:info}←[0m  
Pipeline main started

Nothing appearing after it.

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [August 2, 2016, 10:50pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/7 "2016-08-02T22:50:39Z")

</div>

> [@Abhishek](#):
>
> ignore\_older =\> 0

Try to remove this line in your config and run again.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://discuss.elastic.co/u/Abhishek)\
**Post date:** [August 3, 2016, 9:10am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/8 "2016-08-03T09:10:57Z")

</div>

I've removed 'ignore\_older =\> 0' from config file and run, but no success.  
If needed, I can share --debug output here (although it's very lengthy)

Thanks,  
Abhishek

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [August 3, 2016, 10:07pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/9 "2016-08-03T22:07:05Z")

</div>

Below are what I got from running Logstash 2.3.3 with your config file and sample data

```auto
C:\ELK\logstash-2.3.3\bin>logstash.bat agent -f logstash.conf -r --verbose
io/console not supported; tty will not be manipulated
←[32mstarting agent {:level=>:info}←[0m
←[32mstarting pipeline {:id=>"main", :level=>:info}←[0m
Settings: Default pipeline workers: 2
←[32mRegistering file input {:path=>["C:/sample_data"], :level=>:info}←[0m
←[32mStarting pipeline {:id=>"main", :pipeline_workers=>2, :batch_size=>125, :batch_delay=>5, :max_inflight=>250, :l
evel=>:info}←[0m
Pipeline main started
←[33mReceived an event that has a different character encoding than you configured. {:text=>"Date , GPU Core Clock [
MHz] , GPU Memory Clock [MHz] , GPU Temperature [\\xB0C] , Memory Used [MB] , GPU Load [%] , Memory Controller Load
[%] , Video Engine Load [%] , VDDC [V] ,\\r", :expected_charset=>"UTF-8", :level=>:warn}←[0m
2016-08-01T21:58:11.023Z PC-NAME Date , GPU Core Clock [MHz] , GPU Memory Clock [MHz] , GPU Temperature [\xB0C] , M
emory Used [MB] , GPU Load [%] , Memory Controller Load [%] , Video Engine Load [%] , VDDC [V] ,\r
2016-08-01T21:58:11.025Z PC-NAME 2013-12-30 10:35:32 , 135.0 , 405.0 , 44.0 , 139 , 0 , 5 , 0 , 0.8870 ,
2016-08-01T21:58:11.028Z PC-NAME 2013-12-30 10:35:33 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,
2016-08-01T21:58:11.028Z PC-NAME 2013-12-30 10:35:34 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,
2016-08-01T21:58:11.029Z PC-NAME 2013-12-30 10:35:35 , 135.0 , 405.0 , 43.0 , 139 , 0 , 5 , 0 , 0.8870 ,

```

Try to run your config on an older version of Logstash to see if it helps.

---

<div class="post-metadata">

**Author:** ![Abhishek](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@Abhishek](https://discuss.elastic.co/u/Abhishek)\
**Post date:** [August 4, 2016, 11:37am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/10 "2016-08-04T11:37:46Z")

</div>

It is working fine now.

Problem was with file name extension, I've created data file(sample\_data) using notepad that appends .txt in file name. I am from Unix background, so mostly used vi editor. silly mistake ☹  
sorry for chaos.

Cheers,  
Abhishek

---

<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:** [July 6, 2017, 4:44am UTC](https://discuss.elastic.co/t/logstash-does-not-show-any-output-on-windows-with-stdout/56491/11 "2017-07-06T04:44:54Z")

</div>


