logstashを動作させるのに問題があります。 Basic logstash Exampleが機能します。しかし、私はAdvanced Pipeline Exampleで苦労しています。おそらくそれはelasticsearchの問題かもしれません。logstashシンプルファイル入出力
今、私はちょうど簡単な例の仕事かどうかを確認したい:
- 入力:テキストファイル、
- 出力を読む:テキストファイル、
しかし、私はそれを麻痺させる。私の設定は以下の通りです:
# foo.conf
input {
file {
path => "C:/logstash-2.3.1/logstash-tutorial-dataset"
start_position => "beginning"
}
}
output {
stdout {}
file {
#message_format => "%{foo},%{bar},%{fii},%{bor},%{bing}"
#codec => { line { format => "custom format: %{message}"}}
path => "C:/output.txt"
}
}
私がlogstashを実行すると、次のような応答が表示されます。
bin/logstash -f foo.conf -v --debug --verbose
io/console not supported; tty will not be manipulated
{:timestamp=>"2016-04-22T13:41:15.514000+0200", :message=>"starting agent", :level=>:info}
{:timestamp=>"2016-04-22T13:41:15.518000+0200", :message=>"starting pipeline", :id=>"main", :level=>:info}
{:timestamp=>"2016-04-22T13:41:16.035000+0200", :message=>"Registering file input", :path=>["C:/logstash-2.3.1/logstash-tutorial-dataset"], :level=>:info}
{:timestamp=>"2016-04-22T13:41:16.039000+0200", :message=>"No sincedb_path set, generating one based on the file path", :sincedb_path=>"c:/Users/foobar/.sincedb_802dc9c88c8fad631bf3d3a5c96435e4", :path=>["C:/logstash-2.3.1/logstash-tutorial-dataset"], :level=>:info}
{:timestamp=>"2016-04-22T13:41:16.103000+0200", :message=>"Starting pipeline", :id=>"main", :pipeline_workers=>4, :batch_size=>125, :batch_delay=>5, :max_inflight=>500, :level=>:info}
{:timestamp=>"2016-04-22T13:41:16.106000+0200", :message=>"Pipeline main started"}
簡単な例をどのようにすればよいですか?
sincedbは空です。私はそれを数回削除しましたが、結果に変化はありませんでした。何かが配線されています。私はテストのために実行することができる他の簡単な世界のテストがありますか? – jerik
ファイルが空の場合、logstashはファイルを処理していません。おそらくそれは古すぎるでしょう(「ignore_older」を参照)? –