Why can't read file by input plugin

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

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