Logstash File input: sincedb_path

前端 未结 1 1513
攒了一身酷
攒了一身酷 2021-01-13 21:31

Upon restarting Logstash, at times observed that Logstash duplicates the log events. Was wondering as to what would be the right way to apply start_position,

相关标签:
1条回答
  • 2021-01-13 21:58

    start_position (beginning or end) is only used for files that have not yet been seen by logstash. The only reason to use 'beginning' is when you're trying to load older files.

    sincedb_path just needs to be a directory where logstash has write permission for the registry.

    sincedb_write_interval defines how often logstash should write the sincedb registry. A larger value puts you at risk in logstash were to crash.

    When you have multiple files that match your glob, logstash tracks them separately by having multiple entries in the registry.

    The registry contains the inode number, so logstash knows what to do in that type of rotation.

    0 讨论(0)
提交回复
热议问题