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
Add Harvester Limit to the Apache Tomcat Logs #9558
Add Harvester Limit to the Apache Tomcat Logs #9558
Conversation
@belimawr : Since this is the very first Integration that is using Harvester Limit config option. Also, I see mentioned in the harvester_limit documentation that it is advisable to use the close_* config along with the harvester limit. Thoughts on that? |
🚀 Benchmarks reportTo see the full report comment with |
- name: harvester_limit | ||
type: integer | ||
title: Harvester Limit | ||
description: "Limits the number of harvesters that are started in parallel. More details [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html_)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link that you have attached is broken. Can you please fix it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
- name: harvester_limit | ||
type: integer | ||
title: Harvester Limit | ||
description: "Limits the number of harvesters that are started in parallel. More details [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-harvester-limit)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion]
I'm not completely sure how big the description can be, however it would be nice to mention a couple of things:
- zero means no limit
- This is per input, not a global setting.
The second point can definitely be left for the documentation linked, however the first one I feel it is important to have stated.
Because the harvesters are limited, this means not all files will be opened/harvested at the same time. A new file will only be opened after:
Also because the next file to be opened is picked randomly, there is no guarantee of how long a file will wait to be harvested. Because of this considerations our documentation suggests to set some of the The default to close a file is after 5 minutes of inactivity. In some environments that might be too long. Thinking about it, I believe this PR should also include some of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for changing my review, but something just crossed my mind: Is this integration using Filestream or Log input?
The file changed is called filestream.yml.hbs
, however there is no type: filestream
set and the documentation link is for the Log input. I'm a bit confused here.
This Integration uses Filestream input type here. Documentation is for log input since there exists no documentation for harvester_limit for the filestream input. |
That can be confusing for users. Even though the behaviour of the log input and filestream are the same, some of the configuration keys are different. I'm a bit concerned that this might cause some SDHs. However I don't see it as a blocker, as we can update the documentation link once we document it in Filestream. One of the key difference are the I understand the lack of documentation is a shortcoming from Filestream :/; If it is not super urgent to merge this PR, maybe we can try to get the filestream documentation released first. |
The PR can wait. What would be the timeline for documenting this ib Filestream ? |
@belimawr : Can you share when this documentation would be ready ? |
@pierrehilbert do you think we can squeeze elastic/beats#38784 in our current sprint? It is a small doc update and it will help to keep the documentation for this integration consistent. |
If you are able to finalize your P0 first, I have no objections with having it in the current sprint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some small suggestions, they apply to all entries.
Co-authored-by: Tiago Queiroz <me@tiago.life>
- name: harvester_limit | ||
type: integer | ||
title: Harvester Limit | ||
description: "Limits the number of harvesters that are started in parallel. More details [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-harvester-limit)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am planning to remove this link. Once the beats changes are out for this documentation. Will link it then.
@belimawr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, no need for ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In descriptions, we're sometimes using quotation marks and sometimes not. I think we should be consistent, and ideally, they're not needed.
- name: harvester_limit | ||
type: integer | ||
title: Harvester Limit | ||
description: "Limits the number of harvesters that are started in parallel. More details [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-harvester-limit)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, no need for ""
packages/apache_tomcat/data_stream/localhost/agent/stream/filestream.yml.hbs
Show resolved
Hide resolved
Co-authored-by: Tiago Queiroz <me@tiago.life>
Co-authored-by: Richa Talwar <102972658+ritalwar@users.noreply.github.com>
💚 Build Succeeded
History
cc @ishleenk17 |
Quality Gate passedIssues Measures |
Package apache_tomcat - 1.5.0 containing this change is available at https://epr.elastic.co/search?package=apache_tomcat |
Hello @ishleenk17,
are we missing a value here? After editing and saving the integration in Kibana I get the following error message: |
The issue is being fixed. |
Proposed commit message
Checklist
changelog.yml
file.Related issues
Screenshots