您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

老日志不会通过logstash导入ES

老日志不会通过logstash导入ES

当您读取Logstash的输入日志时,Logstash会保留有关此文件上读取位置的记录,这称为sincedb

Where to write the sincedb database (keeps track of the current position of monitored log files). 
The default will write sincedb files to some path matching "$HOME/.sincedb*"

因此,如果要导入旧的日志文件,则必须删除$ HOME中的所有.sincedb *。然后,您需要设置

start_position =>“开始”

在您的配置文件中。

希望这可以帮到你。

其他 2022/1/1 18:14:28 有560人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶