logstash-input-exec插件使用

来源:互联网 发布:linux新建文件的命令 编辑:程序博客网 时间:2024/04/29 23:29

注意:此实例只能通过FTP对文件读取,不是文件夹。愿大神们分享下如何读取文件夹

input {

    exec {codec => plain { }
    command => "curl ftp://192.168.0.4/logs/test.txt" 
    interval => 3000}
            }
    output {
            stdout { codec => rubydebug }
        }
0 0