Log in to logstash log ftp

Hithere,

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:

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

      

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.

+3


source to share





All Articles