# Logstash does not show outout in the console while using file plugin. But when i give same input from stdin the out is printed in the console

**URL:** <https://discuss.elastic.co/t/logstash-does-not-show-outout-in-the-console-while-using-file-plugin-but-when-i-give-same-input-from-stdin-the-out-is-printed-in-the-console/226872>\
**Category:** Logstash\
**Created:** [April 7, 2020, 10:14am UTC](https://discuss.elastic.co/t/logstash-does-not-show-outout-in-the-console-while-using-file-plugin-but-when-i-give-same-input-from-stdin-the-out-is-printed-in-the-console/226872 "2020-04-07T10:14:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saikumar374265](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saikumar374265/32/56190_2.png) [@saikumar374265](https://discuss.elastic.co/u/saikumar374265)\
**Post date:** [April 7, 2020, 10:14am UTC](https://discuss.elastic.co/t/logstash-does-not-show-outout-in-the-console-while-using-file-plugin-but-when-i-give-same-input-from-stdin-the-out-is-printed-in-the-console/226872/1 "2020-04-07T10:14:53Z")

</div>

logstash does not show outout in the console while using file plugin. But when i give same input from stdin the out is printed in the console.

Here is my config file

input {  
file {  
path =\> "C:\Users\503160527\test.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}

}  
output {  
stdout { codec =\> rubydebug }

```
file{
path => "C:\Users\503160527\ELK\Data\test2.txt"

}

```

}

---

<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:** [April 7, 2020, 2:50pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-outout-in-the-console-while-using-file-plugin-but-when-i-give-same-input-from-stdin-the-out-is-printed-in-the-console/226872/2 "2020-04-07T14:50:23Z")

</div>

Do not use backslash in the path option of a file input, use forward slash.

---

<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:** [May 5, 2020, 2:50pm UTC](https://discuss.elastic.co/t/logstash-does-not-show-outout-in-the-console-while-using-file-plugin-but-when-i-give-same-input-from-stdin-the-out-is-printed-in-the-console/226872/3 "2020-05-05T14:50:28Z")

</div>

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