# Why can't read file by input plugin

**URL:** <https://discuss.elastic.co/t/why-cant-read-file-by-input-plugin/115671>\
**Category:** Logstash\
**Created:** [January 16, 2018, 9:06am UTC](https://discuss.elastic.co/t/why-cant-read-file-by-input-plugin/115671 "2018-01-16T09:06:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![3a5a5881fd90e86035b7](https://avatars.discourse-cdn.com/v4/letter/3/ad7895/32.png) [@3a5a5881fd90e86035b7](https://discuss.elastic.co/u/3a5a5881fd90e86035b7)\
**Post date:** [January 16, 2018, 9:06am UTC](https://discuss.elastic.co/t/why-cant-read-file-by-input-plugin/115671/1 "2018-01-16T09:06:27Z")

</div>

Why can't I output a file (2.txt) from the input file(test.json)?  
When I execute the instruction below , I did't see any oupput in cmd.  
However, I can see the output by stdin and that record to 2.txt successfully.

/bin/pipeline\_file.config

> ```
> input {
> stdin{}
> file {
> path => "/*.json"
> start_position => "beginning"
> }
> }
> 
> output {
> stdout{ codec => "rubydebug" }
> file {
> path => "/2.txt"				
> }
> 
> }
> 
> ```

D:/test.json

> {"name" : "test"}

instruction on command line

> logstash -f pipeline\_file.config

---

<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:** [February 13, 2018, 9:07am UTC](https://discuss.elastic.co/t/why-cant-read-file-by-input-plugin/115671/2 "2018-02-13T09:07:08Z")

</div>

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