Log in to logstash log ftp


My log files are stored on a remote server where the directory is only accessible through a browser.

Every day, if new log files are downloaded to the server, it will be stored like this:



the timestamp will be the time it was uploaded to the server (I can use curl to see its timestamp)

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}


the problem is how can I concatenate / link the timestamp to the event file in directories because there is no timestamp in the log files.


source to share

All Articles