# Limit records in windows perfmon

**URL:** <https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 2, 2018, 8:52am UTC](https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398 "2018-04-02T08:52:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.korshunov](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@a.korshunov](https://discuss.elastic.co/u/a.korshunov)\
**Post date:** [April 2, 2018, 8:52am UTC](https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398/1 "2018-04-02T08:52:10Z")

</div>

Can I get top N records from windows perfmon ordered by value descending? I don't want to store all records.

windows.yml:

> ```
> - module: windows
> metricsets: ["perfmon"]
> period: 10s
> perfmon.counters:      
> - instance_label: "process.name"
> measurement_label: "process.cpu"
> query: '\Process(*)\% Processor Time'
> format: "float"
> # TOP N ordered by value descending
> 
> ```

Thanks.

---

<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:** [April 3, 2018, 1:25pm UTC](https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398/2 "2018-04-03T13:25:50Z")

</div>

This is not supported by the perfmon module. Only the system process metricset has a "top-N" feature. See [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-process.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-system-process.html).

---

<div class="post-metadata">

**Author:** ![a.korshunov](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@a.korshunov](https://discuss.elastic.co/u/a.korshunov)\
**Post date:** [April 3, 2018, 1:38pm UTC](https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398/3 "2018-04-03T13:38:39Z")

</div>

Andrew, thanks for reply!

---

<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:** [May 1, 2018, 1:38pm UTC](https://discuss.elastic.co/t/limit-records-in-windows-perfmon/126398/4 "2018-05-01T13:38:44Z")

</div>

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