Logstash deletes log files after processing

logstash delete log files after processing. My input follows below. Is there a way to force logstash not to delete files after processing?

input {

        file {
          path => "/sftpshare/dplogs/dplogs/prod/ext01/routing/MessageSize_SFTP.log.*"
         type => "tran-routing-prod_ext01_vg5"
         sincedb_path => "/webapps/logstash/data/plugins/inputs/file/pr/ext01_routing-hhs-prod-common"
        mode => "read"
        }
}

input {
file {
path =>
"/sftpshare/dplogs/dplogs/prod/ext01/routing/MessageSize_SFTP.log.*"
type => "tran-routing-prod_ext01_vg5"
sincedb_path =>
"/webapps/logstash/data/plugins/inputs/file/pr/ext01_routing-hhs-prod-common"
mode => "read"
}
}

Set the file_completed_action option to "log".

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.