我试图在我的Windows机器上读取一个本地.jsonlines文件,并不断得到以下错误:
文件路径必须是绝对的、指定的相对路径:路径=> "C:\Usersrest of my filepath.jsonlines“
下面是我的配置文件:
input {
file {
path => "C:\Users\[rest of my filepath].jsonlines"
start_position => "beginning"
sincedb_path => "NUL"
}
}
filter {
json{
source => "message" }
}
output {
csv {
fields => ["myfield1","myfield2","myfield3"]
path => "C:\Users\ [rest of my filepath].csv"
}
}以下是我已经尝试过的:
怎么回事?我发现Windows文件存在一些问题,但我发现的建议(见上文)并不奏效。我正在使用Windows 10和Windows 7,Logstash版本1.5.6 (此时无法更新到2.x )。
提前感谢!
发布于 2016-04-20 18:00:17
通过使用更高版本的Logstash解决问题(1.5.5有效,2.3.1有效)。最后安装了2.3.1,一切都很好。
https://stackoverflow.com/questions/36733265
复制相似问题