Logstash error : not showing output

input {
file {
codec => json
type => "log4j-json"
path => "C:/Users/akashsoni/Downloads/k/logstash-tutorial/20160402050401.log"
start_position =>beginning
}
}
output {
stdout {}
}

Hi, This is my code which I am trying to run but, i got error when i give command at command prompt:C:\Users\akashsoni\Downloads\logstash-2.3.1\bin>logstash -f first-pipeline.conf- -config.In result:error is: missing: en.logstash.runner.configuration.file

And i am a window user.

when i run this command:C:\Users\akashsoni\Downloads\logstash-2.3.1\bin>logstash -f first-pipeline.conf

then it will start the pipeline but not show any output,why?

It'd help if you formatted your post, we can't tell where your error from your command :slight_smile:

C:\Users\akashsoni\Downloads\logstash-2.3.1\bin>logstash -f first-pipeline.conf- -config

o/p: missing: en.logstash.runner.configuration.file

C:\Users\akashsoni\Downloads\logstash-2.3.1\bin>logstash -f first-pipeline.conf

o/p: io/console not supported; tty will not be manipulated
Settings: Default pipeline workers: 4
Pipeline main started

That's not valid syntax. If you use -f you don't need --config, take a look at https://www.elastic.co/guide/en/logstash/current/command-line-flags.html.

when i am not using config it has to show my log.But it not show any thing
:relaxed: