-
Notifications
You must be signed in to change notification settings - Fork 460
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
elastic-agent system module - filesystem.ignore_types in metricbeat is not being applied #7703
Comments
@fearful-symmetry any ideas on this one? |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
This is probably not related to my Array/String suspicion. |
Yah, this appears to be a string/array issue, and we're just passing the array like a string: https://github.com/elastic/integrations/blob/main/packages/system/data_stream/filesystem/agent/stream/stream.yml.hbs |
Great investigation @TheRiffRafi I've checked the manifest for the System integration and we have:
There are actually 3 possible states:
The following snippet could cover (1) and (2), but I do not know how we can express (2) with the manifest we have.
The use case (3) is pretty rare. Are we planning for a fix for this? |
Hi @willem-dhaese, this fix will target a bug where an "array" can't be provided as a list of filesystem types to exclude. So once this fix is addressed, then you can add "unknown" AND "unavailable" as the filesystem types to exclude and that will resolve the issue. If you are not running an elastic-agent integration, and instead you are running |
@TheRiffRafi Hi Rafi, |
Any updates on this? I am seeing the same issues. |
I think in order to not generate breaking changes, I wonder if we could change Metricbeat to parse comma separated values as separate items. |
Another user reported the same problem (Elastic Agent / version 8.12.x). |
@pierrehilbert do we want to put this on the board or plan for it? It seems like a simple fix in the integrations code. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Version: 8.9.0
Operating System: Windows
Steps to Reproduce:
List of filesystem types to ignore
theunknown
andunavailable
values in a row each.{"log.level":"error","@timestamp":"2023-04-06T08:59:18.495+0200","log.origin":{"[file.name](https://file.name/)":"module/wrapper.go","file.line":256},"message":"Error fetching data for metricset system.filesystem: error getting filesystem usage for [Z:\\](file:///Z://): GetDiskFreeSpaceEx failed: The device is not ready.","[service.name](https://service.name/)":"metricbeat","ecs.version":"1.6.0"}
Something worth pointing out.
I don't know if the way the list is built has something to do with this.
I went looking into how the
ignore_types
is done in Metricbeat (no Elastic Agent paired) and the values are each part of an array:https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-filesystem.html#_filtering
When looking at the Elastic Agent diagnostic, I see that the values are passed as a string-value:
And looking at the yml file from the policy, it comes up as a string:
I don't know enough on how the options sent to the Metricbeat process are built so my guess is probably completely wrong, but I thought it was worth pointing out.
I've seen this setting not working twice. Here is another reference: elastic/beats#35187 (comment)
The text was updated successfully, but these errors were encountered: