2017-05-09 74 views
0

我希望Logstash在沒有新行時解析我的文件。sincedb_path/dev/null不起作用

但它不工作:

[2017-05-09T17:28:07,523][DEBUG][logstash.inputs.file  ] each: new inode: /exports/export4hadoop_FULL.csv: old inode was ["136139751", 0, 64769], new is 
["136139747", 0, 64769] 
[2017-05-09T17:28:07,523][DEBUG][logstash.inputs.file  ] :delete for /exports/export4hadoop_FULL.csv, closing file 
[2017-05-09T17:28:07,525][DEBUG][logstash.inputs.file  ] _open_file: /exports/export4hadoop_FULL.csv: opening 
[2017-05-09T17:28:07,526][DEBUG][logstash.inputs.file  ] /exports/export4hadoop_FULL.csv: sincedb last value 985877, cur size 985877 
[2017-05-09T17:28:07,526][DEBUG][logstash.inputs.file  ] /exports/export4hadoop_FULL.csv: sincedb: seeking to 985877 

我的配置文件:

input { 
file { 
    path => "/exports/export4hadoop_FULL.csv" 
    start_position => "beginning" 
    sincedb_path => "/dev/null" 
} 
} 

我沒有找到主目錄下的任何文件.sincedb。我不知道哪裏是Logstash使用的.sincedb文件..

而且我不明白爲什麼它存儲.sincedb,因爲我指定sincedb_path =>「的/ dev/null的」

謝謝:)

回答

0

sincedb_path值默認使用的文件位於;

LOGSTASH_HOME \數據\插件\輸入\文件

我建議您檢查文件夾中的所有文件,將其刪除並重新運行測試。