Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logstash 日志存储日志ftp输入_Logstash - Fatal编程技术网

Logstash 日志存储日志ftp输入

Logstash 日志存储日志ftp输入,logstash,Logstash,迄今为止 我的日志文件存储在远程服务器中,该目录只能通过浏览器访问 每天如果有新的日志文件上传到服务器中,它会这样存储 fttp://serverip.com/logs/2014/10/08/log.txt ftttpp://serverip.com/logs/2014/10/08/log2.txt fffttpp://serverip.com/logs/2014/10/08/log.xml fffttttppp://serverip.com/logs/2014/10/08/log.xl

迄今为止

我的日志文件存储在远程服务器中,该目录只能通过浏览器访问

每天如果有新的日志文件上传到服务器中,它会这样存储

fttp://serverip.com/logs/2014/10/08/log.txt  
ftttpp://serverip.com/logs/2014/10/08/log2.txt
fffttpp://serverip.com/logs/2014/10/08/log.xml  
fffttttppp://serverip.com/logs/2014/10/08/log.xlx
时间戳是它上传到服务器的时间(我可以使用curl查看它的时间戳)

问题是如何将时间戳与目录中的事件文件组合/链接,因为日志文件中没有时间戳

input {
    exec {codec => plain { }
    command => "curl ftp://serverip.com/logs/2014/10/08/" #this list the dir
    interval => 3000}
            }
    output {
            stdout { codec => rubydebug }
            #elasticsearch {embedded => true}
        }