更新时间:2023-02-19 07:40:27
解决方案是在文件路径中提供forward slash
/
而不是backward slash
\
.这很奇怪,因为在Windows中,我们始终对路径分隔符使用正斜杠.而且更怪异的是,它从未引发过诸如找不到文件或其他内容"之类的错误
The solution was giving forward slash
/
instead of backward slash
\
in the file path. This was weird, since in windows we always use a forward slash for a path separator. And what more weird was it never threw an error like 'File not found or something'
因此在logstash-sample.conf
文件中使用以下命令-
So in logstash-sample.conf
file use the following -
path => "C:/Users/17739/Documents/IIT/CSP586/tutorial/project/ChicagoSocialHub/backend-build-divvy-status/divvy_stations_status.csv"