当前位置:网站首页>Logstash clear sincedb_ Path upload records and retransmit log data

Logstash clear sincedb_ Path upload records and retransmit log data

2022-07-06 00:44:00 zhangphil

logstash eliminate sincedb_path Upload records , Retransmit log data

logstash Through a named  sincedb_path The record file under records the current logstash The location of the uploaded log file , If specified as null, Then use home default . Clear this sincedb_path The files under the , Will lead to logstash Lose all uploaded records , that logstash All monitoring files will be uploaded again ( It means that if some of the original data has been uploaded , Then there will be duplicate log files ).

But sometimes it can be used  sincedb_path This feature , Appoint sincedb_path Stored files , And clear all contents in the file , Will trigger logstash Upload all log data repeatedly .

for example :

input{
    file{
        sincedb_path => [ "E:/history/records.data" ]
    }
}

If you remove records.data, Then trigger retransmission .

原网站

版权声明
本文为[zhangphil]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060036080310.html