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

metricbeat - filesystem & fsstat not collecting mount path on windows machines #8916

Closed
HawkUser opened this issue Nov 4, 2018 · 3 comments
Assignees
Labels
Metricbeat Metricbeat module Team:Integrations Label for the Integrations team :Windows

Comments

@HawkUser
Copy link

HawkUser commented Nov 4, 2018

Hi,

it's look like the metricbeat not collecting any data of devices without drive letter on windows machines (mount path), the reason for that is metricbeat relay wrong command:
get-psdrive -PSProvider filesystem
this powershell syntax by design not returning mount path.
they should relay on different command:
Get-WmiObject Win32_Volume | Format-Table Name, Label, FreeSpace, Capacity

metricbeat 6.2.4

@ruflin ruflin added module Metricbeat Metricbeat labels Nov 5, 2018
@ruflin ruflin added the Team:Integrations Label for the Integrations team label Nov 21, 2018
@martinscholz83
Copy link
Contributor

Hello,
it seems that gosigar is using GetLogicalDriveStringsW which only detects logical drives. Better approach is maybe to scan for all volumes and then use GetVolumePathNamesForVolumeNameW function.

@jsoriano jsoriano self-assigned this Jan 9, 2019
@jsoriano
Copy link
Member

jsoriano commented Jan 9, 2019

I have started a branch to try to list filesystems using WMI, with this I have managed to list volumes configured with access paths but without a drive letter.
I still have to do some tests with this.

@jsoriano
Copy link
Member

jsoriano commented Jan 21, 2019

This should be fixed by #10196, that will be released on 6.7.0 and/or 7.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat module Team:Integrations Label for the Integrations team :Windows
Projects
None yet
Development

No branches or pull requests

4 participants