logstash 的config 下有个 logstash-sample.conf文件,我copy 一份 命名 my-logstash.conf ,然后一顿操作,跑了起来:
然而,跑了半天一直停留在 Successfully started Logstash API endpoint {:port=>9600}
看着没问题,也没报错,就等等,没想到等了一天,还是这样,各种查资料改,无果。
最后:
sincedb_path 随便配置个路径: sincedb_path => "D:/tool/elasticsearch/db_path.log"
(如果第二次运行,记得删除这个文件)
input {
file {
path => "D:/develop_tool/elasticsearch/movies.csv"
start_position => "beginning"
sincedb_path => "D:/develop_tool/elasticsearch/db_path.log"
}
}
在bin 目录下启动:
logstash -f ../config/my-logstash.conf
elasticsearch 的窗口,敲几下回车
可以了