# Can't get disk information (Windows) - Metricbeat 7.12.0

**URL:** <https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 20, 2021, 3:07pm UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735 "2021-04-20T15:07:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruivit](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@ruivit](https://discuss.elastic.co/u/ruivit)\
**Post date:** [April 20, 2021, 3:07pm UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735/1 "2021-04-20T15:07:23Z")

</div>

Hi everyone.

After a couple of minutes searching and trying out solutions, I still can't get information about the filesystem and fsstat of, for example of the C drive on my Windows Server.

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/6/863e804779a574de88bab2239dda48b0c1bb1430.png)  
  
  
Tried the following configurations on system.yaml:

- With and without the default drop.event...regex:
- Ignore.filetype (cdrom and shared disk)

Also, the communication between metricbeat and elasticsearch is working since I get other data.

Everything is the same version: 7.12.0

The logs and running `metricbeat -e -d "*"` show the same error.

**[Important]** I found [this](https://discuss.elastic.co/t/metricbeat-7-11-1-fail-in-system-fsstat-and-filesystem-the-device-is-not-ready/265613/8) discussion and it seems like the problem isn't indeed fixed.

Ayway. I appreciate any further help or status about the situation.

Thanks and have a great day.

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [April 21, 2021, 8:06am UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735/2 "2021-04-21T08:06:54Z")

</div>

hi @ruivit , the issue to follow is [[Metricbeat] Filesystem Metricset: Inconsistent `system.filesystem.type` values on Windows · Issue #22501 · elastic/beats (github.com)](https://github.com/elastic/beats/issues/22501) . The fix has not made in 7.12 unfortunately but will most likely make it in the next release.

---

<div class="post-metadata">

**Author:** ![ruivit](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@ruivit](https://discuss.elastic.co/u/ruivit)\
**Post date:** [April 21, 2021, 8:08am UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735/3 "2021-04-21T08:08:22Z")

</div>

Okay then. Thanks for the update on the issue.

---

<div class="post-metadata">

**Author:** ![ruivit](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@ruivit](https://discuss.elastic.co/u/ruivit)\
**Post date:** [May 11, 2021, 8:42am UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735/4 "2021-05-11T08:42:28Z")

</div>

I've actually found the solution, it uses the perfmom module.  
Just leaving it here for someone who's facing the same issue.

- Tested with Windows Server 206 & 2019
- Metricbeat 7.12.0 (and ELK Stack)

## Get Free Disk Percentage

```auto
- module: windows
  metricsets: ["perfmom"]
  enabled: true
  period: 5m
  perfmom.queries:
    - object: '\LogicalDisk'
      namespace: logicaldisk
      instance: "C:" (or "*" for all drives)
      counters:
        - name: '% Free Space'
          label: logicaldisk.free.space

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 8, 2021, 10:43am UTC](https://discuss.elastic.co/t/cant-get-disk-information-windows-metricbeat-7-12-0/270735/5 "2021-06-08T10:43:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
