以下是我的示例logstash conf文件。
input{
file{
path => "D:\Log\apacheTest.log" \\here i want to give path for the folder
start_position => beginning
}
}
我尝试将路径交给文件夹,但它不解析正在添加到该文件夹中的文件,也尝试通过在路径中使用。*模式进行尝试。
您需要这样做:
input{
file{
path => "D:/Log/*.*"
start_position => beginning
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句