Logstash日志ftp输入

时间:2014-10-08 08:14:19

标签: logstash

Hithere,

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

如果在服务器中上传了新的日志文件,则每天都会存储,

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}
        }

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

0 个答案:

没有答案