Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider combining directory_monitor, file, tail plugins #11108

Closed
Tracked by #9478
reimda opened this issue May 17, 2022 · 8 comments
Closed
Tracked by #9478

Consider combining directory_monitor, file, tail plugins #11108

reimda opened this issue May 17, 2022 · 8 comments
Labels
area/tail plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins rfc Request for comment - larger issues that require clarification

Comments

@reimda
Copy link
Contributor

reimda commented May 17, 2022

@Hipska noticed that there is functional overlap across these plugins. It might make sense to combine them in some way, either sharing code or consolidating functionality then deprecating/removing one or more of the plugins.

Plugin / Feature directory_monitor file tail
Read newly appeared files ✔️ ✔️ ✔️
Parsing line-by-line, complete-file complete-file line-by-line
Move/Remove file after parsing ✔️
Supports gzipped file ✔️
@Hipska Hipska added help wanted Request for community participation, code, contribution rfc Request for comment - larger issues that require clarification plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels May 19, 2022
@Hipska Hipska added this to the 2.0.0 milestone May 19, 2022
@powersj
Copy link
Contributor

powersj commented May 19, 2022

next steps: review as part of 2.0 milestone

@Hipska
Copy link
Contributor

Hipska commented May 24, 2022

My preference on this would be to merge directory_monitor functionality into file and then deprecate directory_monitor. The tail plugin can stay as is.

Other scenario could be to deprecate both file and tail plugin in favour of directory_monitor.

@Hipska Hipska removed the help wanted Request for community participation, code, contribution label May 24, 2022
@powersj powersj removed this from the 2.0.0 milestone Feb 2, 2023
@Hipska
Copy link
Contributor

Hipska commented Feb 16, 2023

@powersj next steps?

@powersj
Copy link
Contributor

powersj commented Feb 16, 2023

I think we are ok removing older plugins that have long been deprecated, but removing either directory_monitor, file, or tail will break a lot of users and cause a lot of pain for them. So I do not see us removing any of these.

Does that only then leave the gzip support and moving/delete a file?

@powersj powersj added the waiting for response waiting for response from contributor label Feb 16, 2023
@Hipska
Copy link
Contributor

Hipska commented Feb 16, 2023

We could start with adding the functionalities to 1 plugin and marking the others as deprecated..

I think if we do it smart, we can even make the others ones a link/rename, so it is seamless..

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Feb 16, 2023
@Hipska
Copy link
Contributor

Hipska commented Jun 29, 2023

@powersj your thoughts?

@powersj
Copy link
Contributor

powersj commented Jun 29, 2023

We could start with adding the functionalities to 1 plugin and marking the others as deprecated..

I am not entirely sure what we as maintainers and our users gain from doing this. Yes, there is duplication but since these plugins are so widely used it will impact a wide group of users.

Doing this will ultimately lead to lots of questions from users about moving over or we find out that there is different or unexpected behavior that users were depending on which suddenly disappears by consolidating the three plugins.

As I mentioned in my earlier comment, I could see us adding features like the gzip support and moving files possibly if users would find it useful.

@powersj
Copy link
Contributor

powersj commented Nov 16, 2023

Sven and I met to further discussion this again and agree this is not something we would do as it would interrupt existing users and only cause confusion.

@powersj powersj closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tail plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins rfc Request for comment - larger issues that require clarification
Projects
None yet
Development

No branches or pull requests

3 participants