如何在logstash配置文件中提供文件夹位置作为输入

时间:2016-06-27 04:27:25

标签: logstash elastic-stack logstash-configuration

以下是我的示例logstash conf文件。

input{
    file{
        path => "D:\Log\apacheTest.log" \\here i want to give path for the folder
        start_position => beginning

    }
}

我尝试通过将路径添加到文件夹但是它不解析正在添加到该文件夹​​的文件,也尝试在路径中使用。* pattern。

1 个答案:

答案 0 :(得分:0)

你需要这样做:

{{1}}
相关问题