这是我的logstash.conf
input {
file {
type => "java"
path => "/home/user/ELK/logs/logstash-tutorial-dataset"
}
}
output {
stdout {
codec => rubydebug
}
}
尝试使用命令启动logstash时:
./bin/logstash -f logstash.conf --config.reload.automatic
它没有在命令提示符下提供任何输出。 (除了下面的行)
[2018-02-19T15:06:46,910][INFO ][logstash.pipeline ] Starting
pipeline {:pipeline_id=>"main", "pipeline.workers"=>4,
"pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2018-02-19T15:06:46,962][INFO ][logstash.pipeline ] Pipeline
started succesfully {:pipeline_id=>"main", :thread=>"#
<Thread:0x1dd165a4 sleep>"}
[2018-02-19T15:06:46,988][INFO ][logstash.agent ] Pipelines
running {:count=>1, :pipelines=>["main"]}
你能告诉我这是什么问题吗?
OR
这是预期的行为吗?
(我希望它在从输入部分配置的文件读取后打印输出)
答案 0 :(得分:-1)
尝试在路径后添加这两行:
start_position = beginning
sincedb_path = "/dev/null"