-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Metricbeat] Filesystem Metricset: Inconsistent system.filesystem.type
values on Windows
#22501
Comments
Pinging @elastic/integrations-services (Team:Services) |
@narph can you look at this? This isn't the first time we've had issues with the API calls used in |
FYI, in the meantime elastic/gosigar#146 extends |
Ah, didn't even notice that PR! We'll see if we can cut a release and go from there. |
@fearful-symmetry , I am not sure why we used GetDriveTypeW for the filesystem type, I do see we are not using I agree with re-evaluating the |
@andrewstucki @narph @fearful-symmetry This change broke metricbeat on Windows systems, I posted a script here with some sample output: https://discuss.elastic.co/t/metricbeat-7-11-1-fail-in-system-fsstat-and-filesystem-the-device-is-not-ready/265613/3 Don't know how to fix this, but let me know if I can be to any help. 🙏 |
Well, I didn't see that coming. I think @andrewstucki is going to have to take a look at that, since it's a little too windows-heavy for me to be confident, but it seems like we can just filter drive types before we get additional information on them? |
Hi Elastic Team, Could you please re-open this ticket? |
@leandroscardua Can you elaborate and post your configuration and related events? The actual |
Just a note that we're seeing the same problem that @anderssonjohan is seeing with the 7.11.1 version of metricbeat embedded in the elastic agent. Tracking the issue with Elastic support on case 00688041 if any additional environment-specific details are needed. |
Same issue reported by @anderssonjohan |
This issue also exists in Elastic Agent 7.11.1 |
Bump, any update on this? |
I'm waiting for some help from @narph, since she's the resident windows expert. |
I was able to reproduce the issue using a portable DVD writer, looks like the |
Whohoo, that's awesome @narph! Great work! 🙏 |
Hi, the problem still exist in 7.12.0 Metricbeat for Windows. |
Unfortunately, there is no workaround for the current version so, indeed, best solution for now is using an earlier version of Metricbeat instead. |
For reference purposes I believe this issue is fixed on 7.12.1 onwards, and not on 7.12.0. |
Can confirm. Working in 7.12.1 |
The
filesystem
metricset in Metricbeat on Windows appears to have badtype
information.From the docs:
system.filesystem.type
- The disk type. For example: ext4What the docs are pointing to is the file system disk format. On Windows, however, this gets filled in by
TypeName
field from the underlyinggosigar
library.In the
gosigar
library this appears to be referencing the actual drive type (removable, fixed, ramdisk, etc.) rather than the filesystem format. It looks like it's been that way for the past 3 years, starting with this PR: #4717 -- but there's not enough context in the PR to figure out why we're using that field on Windows hosts.From a quick perusal of the gosigar code, it appears like the filesystem format (
SysTypeName
) might never get set in theFileSystem
structure on Windows, which, coupled with a desire to fill this in on Windows in beats and not realizing the difference betweenTypeName
/SysTypeName
might explain the conditional in metricbeat.I'm pretty sure that getting the right information would require extending
gosigar
to fill in theSysTypeName
information based off of an underlying WinAPI call to GetVolumeInformationW.The text was updated successfully, but these errors were encountered: