2017-05-09 118 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 \数据\插件\输入\文件

我建议您检查文件夹中的所有文件,将其删除并重新运行测试。