Is your feature request related to a problem? Please describe.
We like to fetch access-logs of java application servers (websphere and tomcat). This file is not "too" large and therefore not rotated. I use fluent-bit and elastic search as backend. each day gets an individual index. (default-behaviour for sending in logstash-format)
When I start fluent-bit the first time, hundrets of indices get created and my elastic search instances crashes.
Describe the solution you'd like
I ask to have an option that configures the tail-plugin, that it does not read the whole file when fluent-bit was first started but instead start at the end of the files.
Describe alternatives you've considered
I think about creating an configuration that send all the records to null output and wait, until the db-files are created and reached the end of all files. Then change the configuration to habe the correct output and get all new record to the elastic-search cluster. This is an very ugly workaround but I don't have a better idea at the moment.
Additional context
I use the db-parameter and it works fine, when the first transfer completed. I am currently in preprod-zones and the "small" files there already result in large problems. To use the solution in production, I need to find a solution for this issue.
Is your feature request related to a problem? Please describe.
We like to fetch access-logs of java application servers (websphere and tomcat). This file is not "too" large and therefore not rotated. I use fluent-bit and elastic search as backend. each day gets an individual index. (default-behaviour for sending in logstash-format)
When I start fluent-bit the first time, hundrets of indices get created and my elastic search instances crashes.
Describe the solution you'd like
I ask to have an option that configures the tail-plugin, that it does not read the whole file when fluent-bit was first started but instead start at the end of the files.
Describe alternatives you've considered
I think about creating an configuration that send all the records to null output and wait, until the db-files are created and reached the end of all files. Then change the configuration to habe the correct output and get all new record to the elastic-search cluster. This is an very ugly workaround but I don't have a better idea at the moment.
Additional context
I use the db-parameter and it works fine, when the first transfer completed. I am currently in preprod-zones and the "small" files there already result in large problems. To use the solution in production, I need to find a solution for this issue.