# Windows module - The specified object was not found

**URL:** <https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 24, 2017, 1:37pm UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983 "2017-05-24T13:37:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Davis](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jeff\_Davis](https://discuss.elastic.co/u/Jeff_Davis)\
**Post date:** [May 24, 2017, 1:37pm UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/1 "2017-05-24T13:37:56Z")

</div>

I am testing the new Windows module in metricbeat-6.0.0-alpha1 on Windows 7 and Windows 10 machines. I am very excited about this functionality!

The issue/concern I have is if the perfmon counter does not exist on the machine, metricbeat fails to start with the following error.

Exiting: 1 error: initialization failed: failed to add counter (path="\ICA Session(\_Server Total)\Latency - Last Recorded"): The specified object was not found on the computer.

For my use case, I would like to run the metricbeat agent on physical and virtual machines. The virtual machines have this counter but the physical machines do not. Ideally, I would like to use the same yml file across all machines to keep the deployment simple. I understand the logic behind failing if the counters don't exist but I would propose that be a warning instead of a fatal error.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 25, 2017, 12:48pm UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/2 "2017-05-25T12:48:56Z")

</div>

Maybe we could add a config option that says to ignore the failure if the counter is missing? I wondering if that should be a per counter option or a per metricset option. WDYT?

cc: @maddin2016

---

<div class="post-metadata">

**Author:** ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)\
**Post date:** [May 26, 2017, 7:50am UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/3 "2017-05-26T07:50:51Z")

</div>

@andrewkroh, that would be a nice feature. I would prefer the per counter option because if you have many counters and you have a spelling mistake in one or two you never get a notice.

---

<div class="post-metadata">

**Author:** ![Jeff\_Davis](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jeff\_Davis](https://discuss.elastic.co/u/Jeff_Davis)\
**Post date:** [May 26, 2017, 12:34pm UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/4 "2017-05-26T12:34:23Z")

</div>

For my purposes, enabling it at the higher level would be fine. I would test my yml file w/o the option to identify typos and then enable it on the whole metricset for deployment. That way I would at least get some metrics from machines that were missing a counter for some reason. I can understand why some might want it at the counter level though so, if it is not too much to ask, how about the option to do either?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 26, 2017, 1:03pm UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/5 "2017-05-26T13:03:35Z")

</div>

I added it to our [list](https://github.com/elastic/beats/issues/3828) of things that we would like to have in the module for the GA release. Thanks for the feedback.

---

<div class="post-metadata">

**Author:** ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)\
**Post date:** [May 29, 2017, 8:45am UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/6 "2017-05-29T08:45:06Z")

</div>

> how about the option to do either?

👍

---

<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 26, 2017, 8:45am UTC](https://discuss.elastic.co/t/windows-module-the-specified-object-was-not-found/86983/7 "2017-06-26T08:45:13Z")

</div>

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